Order the resultset by created and limit the result to 1 entry

2009/7/21 Dave Maharaj :: WidePixels.com <[email protected]>

>  How would I find the newest entry added using the created date?
>
> 'conditions' => array(
>       'Entry.showcase_id' => $showcase_id, 'Entry.created' => ????not sure
> how to get the newest??/?),
>
> Thanks
>
> Dave
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

  • Find conditions Dave Maharaj :: WidePixels.com
    • Re: Find conditions Carlos Lavin

Reply via email to