> If I express the last condition like:
>
> 'Post.datetime1' => '>Post.datetime2'
>
> I get anything
> How can I do this?
Seriously man, "I get anything"? Not much to go on - try pasting the
SQL that's being generated.
Well, next time anyway. You just need to use the "just trust me on
this" oper
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
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?
--~--~-~--~~-
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?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePH