This commit is contained in:
Dan Cryer 2015-10-09 10:37:50 +01:00
commit f7a20d8720
3 changed files with 15 additions and 32 deletions

View file

@ -249,25 +249,4 @@ class Build extends BuildBase
exec(sprintf(IS_WIN ? 'rmdir /S /Q "%s"' : 'rm -Rf "%s"', $buildPath));
}
/**
* @param Project $value
*/
public function setProjectObject(\PHPCI\Model\Project $value)
{
$this->data['project'] = $value;
return parent::setProjectObject($value);
}
/**
* Get the Project model for this Build by Id.
*/
public function getProject()
{
if (empty($this->data['project'])) {
$this->data['project'] = parent::getProject();
}
return $this->data['project'];
}
}