Sometimes it's just easier to use mysql functions in the conditions. But cakephp automatically quote them. To disable the automatic quoting for any field just prefix the variable with a -! for example:
$notifications=$this->Notification->findAll(array('notification_date'=>'>= -!now()'));

1 comments:
This not work for me, but the solution http://php.abdullahsolutions.com/search/label/conditions
is OK. Ohh so easy!!
Thaks very much.
Mareg
Post a Comment