4 responses to “CakePHP Model->find conditions”

  1. Daniel Hofstetter

    I’m not sure whether this works in your case, but it is probably worth a try:

    $this->YourModel->find(‘all’, ‘conditions’ => array(‘Model.field between ? and ?’ => array(‘value1′, ‘value2′))));

  2. Colin

    Great examples of date filtering with CakePHP. I especially like the “+1 day” business, didn’t know that existed before reading this!

  3. Michael

    thanks for this post – I’d been stuck on this for a few hours

Leave a Reply