Re: Recover associated data of second level.

2012-05-12 Thread Tony Messias
What about the "recursive" param on your params array? http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#find i.e: $this->User->find('all', array('recursive' => 2)); -- Luiz Antonio S Messias Desenvolvedor Web @tonyzrp *Li

Re: Recover associated data of second level.

2012-05-12 Thread J.
To Be more precise I have : User hasOne Profile Profile belongsTo USer Profile HABTM Card Card HABTM Profile Since profile belongs to User, How can I get its associated data (CArd) from the USer view ? Le samedi 12 mai 2012 16:25:48 UTC+2, J. a écrit : > > Hi, > > In my cake app I have : > >

Recover associated data of second level.

2012-05-12 Thread J.
Hi, In my cake app I have : User hasOne Profile HasAndBelongsToMany Card When I find a user, I get this array : array( > 'User' => array( > 'password' => '*', > 'id' => '1', > 'email' => '***', > 'username' => '**', >