Cakephp1.3 conditions 比較演算子
Cakephp1.3にて、WHEREの条件(conditions) に悩んでしまったのでメモ。
Cakephp1.3 conditions 比較演算子
9より小さい
$conditions = array(
'conditions' => array('Model.id >' => '9')
);
$hoge = $this->Model->find('all',$conditions);
9以下
$conditions = array(
'conditions' => array('Model.id >=' => '9')
);
$hoge = $this->Model->find('all',$conditions);