Hello,

I am writing a custom auth component (cake 1.2). I am doign a find
$UserModel->find(), which works fine.

But I would like to create an UserModel instance with the data from
that find. Or possible alter the find so that it (or some other
method) creates a UserModel instance with the needed data in is also.
How can I do this?

....
Really I am just doing this to minimize DB queries. $this->User->id =
$id works fine... but now I am querying for the same row in the DB
twice per page load. I'd prefer to avoid that.

Thanks,
Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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