tip:
use "contain = array()"
this is the same as recursive = -1 and therefore no related table is
contained


On 16 Aug., 17:09, Jeremy Burns | Class Outfit
<[email protected]> wrote:
> By saying that 'contain' = false you aren't specifying any containments. It 
> looks as if you are just going to recursive level 1.
>
> Jeremy Burns
> Class Outfit
>
> [email protected]http://www.classoutfit.com
>
> On 16 Aug 2010, at 16:05, Dave Maharaj wrote:
>
> > I have a simple function:
>
> > public function __getUserFromEmail($email)
> >             {
> >                         $params = array(
> >                                     'contain' => false,
> >                'conditions' => array(
> >                                                 'User.email' => $email),
> >                                     'fields' => array(
> >                                                 'User.first_name',
> >                                                 'User.last_name',
> >                                                 'User.email',
> >                                                 'User.password',
> >                                                 'User.id',
> >                                                 //'User.reset',
> >                                                 'User.confirm_code'))
> >                                     ;
>
> >                         return $this->find('first', $params);
> >             }
>
> > When I debug the data returned I get User , Gallery and Comment model data 
> > even though contain set to false.
>
> > User hasMany Comments
> > User hasMany Galleries
>
> > Any ideas where I am going wrong?
>
> > Thanks
>
> > Dave
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > 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 
> > athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to