containable
CakePHP containable and paginate - deep associations not appearing
I\'m trying to use containable in a paginated query.The code is below, in full. $this->paginate = array([详细]
2023-04-10 11:31 分类:问答Can I use subqueries in a 'containable' condition?
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?[详细]
2023-04-09 23:56 分类:问答CakePHP JSON API containable question
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[详细]
2023-03-30 03:19 分类:问答CakePHP and Containable
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.[详细]
2023-03-20 08:12 分类:问答CakePHP, Containable, Group By
I\'ve got a scenario where I am trying to use group by on a model associated with my main model using containable.[详细]
2023-03-20 06:03 分类:问答Paginate results filtered by condition on associated model (HABTM) using Containable
I need to paginate list of Products belonging to specific Category (HABTM association). In my Product model I have[详细]
2023-03-18 07:54 分类:问答Trying to get "City" data from Event->Venue->City using 'contain' in CakePHP
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.[详细]
2023-03-13 08:29 分类:问答CakePHP - Is it possible to use Containable behaviour with the read() method?
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()[详细]
2023-03-09 16:54 分类:问答CakePHP: Select DISTINCT in ContainableBehaviour
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[详细]
2023-03-05 09:56 分类:问答'Notice (8): Undefined index' in the view when looping through 'containable' results
I\'m using containable to pull associated records into the view action and am getting an error message when looping through results.[详细]
2023-02-13 18:50 分类:问答