$model=Auction::model()->findAll(array(
'condition'=>'status=:status AND starttime >= :date',
'params'=>array(':status'=>1, ':date'=>$date),
));
reference
http://stackoverflow.com/questions/7314284/yii-findbyattributes-with-greater-than-attribute
訂閱:
發佈留言 (Atom)
沒有留言:
發佈留言