I have found a solution in this way:

$conditions['Post.created'] = '>'.$post_created;
$posts_after = $this->Post->findAll($conditions);

On 22 Ago, 10:53, albe <[email protected]> wrote:
> Hi everybody,
>
> I have obtained the created vale for a row of my model in this way:
>
> $post_created = $this->InfodiscPost->field('created', array('Post.id
> ='.$post_id));
>
> Now I want to obtain an array containing all the posts created after
> this one. My attempt was this:
>
> $posts_after = $this->Post->findAll('Post.created > '.$post_created);
>
> but it doesn't seem to work. Is there something wrong in the condition?
--~--~---------~--~----~------------~-------~--~----~
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