I have to write conditions in a form of array like this:
array
(
"Post.title" => array("First post", "Second post", "Third post"),
"Post.created" => "> " . date('Y-m-d', strtotime("-2 weeks"))
)
If I express the last condition like:
'Post.datetime1' => '>Post.datetime2'
I get anything
How can I do this?
On 30 Apr, 12:26, inma <[EMAIL PROTECTED]> wrote:
> findAll("datetime1 > datetime2")
>
> On 30 abr, 12:22, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > Hi
> > I have a model with two datetime (datetime1 datetime2).
> > Now I must find all records with datetime1 > datetime2.
> > How must I write findAll condition to do this?- Nascondi testo tra
> > virgolette -
>
> - Mostra testo tra virgolette -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---