* change onCaseOf/endCase into beginIF/endIF

This commit is contained in:
chencongzhi520
2010-06-22 05:56:24 +00:00
parent 0d8748f2ba
commit 3a8564cbcb
11 changed files with 280 additions and 280 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ class bugModel extends model
{
return $this->dao->select('*')->from(TABLE_BUG)
->where('product')->eq((int)$productID)
->onCaseOf(!empty($moduleIds))->andWhere('module')->in($moduleIds)->endCase()
->beginIF(!empty($moduleIds))->andWhere('module')->in($moduleIds)->endIF()
->andWhere('deleted')->eq(0)
->orderBy($orderBy)->page($pager)->fetchAll();
}