2014年7月2日

cakephp 中连接查询多表 或group by

摘要: $options = array( 'conditions' => $conditions, 'fields'=>array('Category.*','COUNT(`Entity`.`id`) as `entity_co... 阅读全文

posted @ 2014-07-02 19:06 陈可 阅读(552) 评论(0) 推荐(0)

cakephp 中的in的用法

摘要: $this->Mymodel->find('all', array('conditions' => array('Mymodel.name' => array($authors ,$articles)),'order'=>'Mymodel.id DESC')); 阅读全文

posted @ 2014-07-02 19:05 陈可 阅读(316) 评论(0) 推荐(0)

导航