I\'m trying to use containable in a paginated query.The code is below, in full. $this->paginate = array(
In my CakePHP I have ModelA which hasMany ModelB. ModelB has an int value Q. Can I query ModelA and use containable to ensure that only those ModelB records with the maximum value for Q?
right now I have controllers/actions that do standard retrieval of model/associated model data. My actions currently just pass the variables to the views to pick and choose which values to display to
Let me start out by saying I\'ve tried to read the CakePHP book as much as I can for this particular topic, and for whatever reason, I just cannot figure this out.
I\'ve got a scenario where I am trying to use group by on a model associated with my main model using containable.
I need to paginate list of Products belonging to specific Category (HABTM association). In my Product model I have
I\'m trying to return a list of events, and include the city where it\'s taking place.The city is only associated through the Event\'s Venue though.
I\'m new with CakePHP and can\'t figure out how to call the read() method of a model class with a Containable behaviour. I can do the following with find()
I am trying to select only distinct related model entries but it seems it doesn\'t work. I have this: $active_questions = $this->Question->find(\'all\', array(\'conditions\' => array(\'test
I\'m using containable to pull associated records into the view action and am getting an error message when looping through results.