cakephp: how to make NOW() work in search condition ?
- by kaklon
I'm trying to get all records with date greater then now. I tried this but it doeasnt work:
$all_dates = $this->TourDate->find('all', array('conditions' => array('TourDate.date >=' => 'NOW()'), 'order' => array('TourDate.date ASC')));
If I replace NOW() with the current date it works. Why's that?