On Product Model
public $hasAndBelongsToMany = array('Category' ,'Catalog');
On Products_Controller
$this->data=$this->Product->find('all',array('conditions'=>array
('Product.active'=>1),'limit'=>'100'));
$this->Product->getNumRows()
it returns 100 Products , this is OK
but
$this->Product->Catalog->getNumRows()
also returns 100 ( number of Products ) instead of 3 ??????
is this a bug?
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment