Hi! I'm beginner with cakephp.
I have binded models with HABTM
Model 'Field':
******
var $name = 'Field';
var $hasAndBelongsToMany = array(
'Category' => array('className' => 'Category')
);
******
i use :
******
$result=$this->find('all');
******
I can see that debug message returns 6 records (Num.rows) from
Category model
but $result shows only first Categories record
How to get All 'Category' records that have been associated with
'Field' model ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---