Sprint/228 zg tasks and units
This commit is contained in:
@@ -702,6 +702,24 @@ class testcaseModel extends model
|
||||
->fetchAll('id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get case pairs by product id and branch.
|
||||
*
|
||||
* @param int $productID
|
||||
* @param int|string $branch
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function getPairsByProduct($productID, $branch = 0)
|
||||
{
|
||||
return $this->dao->select('id, concat_ws(":", id, title) as title')->from(TABLE_CASE)
|
||||
->where('deleted')->eq(0)
|
||||
->andWhere('product')->eq($productID)
|
||||
->beginIF($branch)->andWhere('branch')->in($branch)->fi()
|
||||
->orderBy('id_desc')
|
||||
->fetchPairs();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get cases of a story.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user