Fix
This commit is contained in:
parent
df2ca2ee2a
commit
f7a20d8720
3 changed files with 15 additions and 32 deletions
|
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue