I have some models set up with the following relations:
Profile->Cardset->Card
I am trying to get all the Cardsets related to a specific Profile Id
and am using this:
$cardsets = $this->Cardset->find('all', array(
'contain' => array(
'Profile' => array(
'conditions' => array(
'Profile.id' => $profileId['Profile']['id']
),
'fields' => array('id')
)
)
));
The problem with this is it returns $cardsets[n]['Profile']['id'] the
only data I want returned is the Cardset Model data and no Profile
data, what is the best way of achieving this?
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