Did you even attempt to READ the manual section on findAll parameters
before posting this?? Or the API?

Go back to manual, do not pass go.. do not collect $200.

Model Methods, Retrieving your data:  http://tempdocs.cakephp.org/#TOC66452





On Jan 26, 1:12 am, bob <[EMAIL PROTECTED]> wrote:
> i have a User table with 'id' and 'name' columns, and a Email table with
> 'user_id' and 'email' columns.
>
> if i have User hasMany Email, and in my UsersController, i do
> $this->User->findByEmail(...), it returns all of 'id', 'name', 'user_id',
> and 'email' columns. how do i make it so that it only returns the User
> columns ('id' and 'name') only, but not 'user_id' and 'email'?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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