[CakePHP] conditionsでのORとかANDの条件指定 By syu on 11月 13th, 2010 ■条件 ・statusが1であること ・startが今日または今日よりも過去の日付であること。またはNULLであること。 ・endが今日または今日よりも未来の日付であること。またはNULLであること。 $contents = $this->Content->find('all', array( 'conditions' => array( 'Content.id' => $id, 'Content.status' => 1, array( 'OR' => array( 'Content.start <=' => date('Y-m-d'), 'Content.start' => null, ), ), array( 'OR' => array( 'Content
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く