Haizzz, I think your problem is very easy to solve. Could you show your view
for this action ?????
---------------------------------
Best regards !
Giang Son Dat
Mobile: +84 988114164
Email giangson...@gmail.com, giangson...@yahoo.com


On Fri, Mar 6, 2009 at 9:24 AM, Curly <curlyc...@gmail.com> wrote:

>
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to