Hi

Just look at the source :
http://api.cakephp.org/libs_2model_2model_8php-source.html#l00949

Model::read is only a wrapper for Model::find, which, as Dardo said,
and as mentionned in the API
(http://api.cakephp.org/class_model.html), populates Model::$data...
("find" doesn't do that)
It's just a quick helper method.

+++++++
Clément

On Sun, Aug 17, 2008 at 3:03 PM, haj <[EMAIL PROTECTED]> wrote:
>
>
>
> On Aug 15, 2:15 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
>> > What's the difference between these two query methods? Should find and
>> > findAll be working?
>>
>> Use Model::read() when you have the ID, ie you know the record you are
>> referring to. Also read() will populate the Model::$data in a way
>> suitable for Model::save(),
>
> Doesn't find() do the same thing? findById() for instance isn't
> actually find(), is it? I can't see the benefit of differentiating
> yet.. Some elaboration appreciated..
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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