On Sun, Aug 16, 2009 at 1:52 PM, albe<[email protected]> wrote:
>
> $_this_id = $this->Post->field(
> 'forum_id',
> array('Post.discussion_id' => $id)
> );
>
> Thank you very much brian! Now this works for me...
> Anyhow, I'd like to know how is it possible that the form indicated on
> CakeBook doesn't work
>
> LINK: http://book.cakephp.org/view/807/find-first
> FUNCTION: $alsoLastCreated = $this->Article->find('first', array
> ('order' => array('Article.created DESC')));
How is that not working? It's not supposed to be a discrete number
(eg. ID). Cake's find('first') returns an array. It just contains the
data for a single record.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---