* 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
@@ -167,7 +167,7 @@ class actionModel extends model
public function getDynamic($objectType = 'all', $count = 30)
{
$actions = $this->dao->select('*')->from(TABLE_ACTION)
->onCaseOf($objectType != 'all')->where('objectType')->eq($objectType)->endCase()
->beginIF($objectType != 'all')->where('objectType')->eq($objectType)->endIF()
->orderBy('id desc')->limit($count)->fetchAll();
if(!$actions) return array();
foreach($actions as $action)