You cannot use array syntax for these any more, you have to use string
syntax (where escaping falls to you, rather than Cake).

$conditions = array(
  'FooModel.foo_important_type = NOW()'
);


On Jul 8, 7:50 am, vb13 <[EMAIL PROTECTED]> wrote:
> HI all,
>
> there is already a 
> threadhttp://groups.google.com/group/cake-php/browse_thread/thread/fb93a2e5...
> that recommends using a cake 'escape' !-' to use now() function
> literally, and not quoted but this does not work in RC2. The value is
> still quoted.
>
> I.e.
>
> $data['FooModel']['foo_important_time'] =' !-now()'; still generates
> sql like
>
> `foo_important_time` = ' now()'  etc. but I want to have
> `foo_important_time` = 'now() - unquoted
>
> Your help will be greatly appeciated. I do not want to use server
> time, because admins may mess it up and then there is a time mismatch
> (I am writing time expiration logic in mysql).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to