Removed useless 'project_id' column from 'build_meta' table.

This commit is contained in:
Dmitry Khomutov 2017-10-15 00:48:53 +07:00
commit 9e57de043e
7 changed files with 36 additions and 160 deletions

View file

@ -660,18 +660,6 @@ class Project extends Model
return Factory::getStore('Build', 'PHPCensor')->getByProjectId($this->getId());
}
/**
* Get BuildMeta models by ProjectId for this Project.
*
* @uses \PHPCensor\Store\BuildMetaStore::getByProjectId()
* @uses \PHPCensor\Model\BuildMeta
* @return \PHPCensor\Model\BuildMeta[]
*/
public function getProjectBuildMetas()
{
return Factory::getStore('BuildMeta', 'PHPCensor')->getByProjectId($this->getId());
}
/**
* Return the latest build from a specific branch, of a specific status, for this project.
* @param string $branch