Hi Adam,
The SQL being executed:
SELECT `Paper`.`title`, `Paper`.`id`, `Paper`.`created`,
`Volume`.`id`, `Volume`.`title`, `Volume`.`number` FROM `papers` AS
`Paper` LEFT JOIN `volumes` AS `Volume` ON (`Paper`.`volume_id` =
`Volume`.`id`) WHERE `Paper`.`id` = 20 AND `Paper`.`is_deleted` != 1
I'm having trouble with the Containable behavior.
My first query,
?php
$this-Controller-Paper-recursive = 3;
$this-Controller-Paper-Volume-unbindModel(array('hasMany' = array
('Paper')));
$data = $this-Controller-Paper-find('first', array(
'conditions' = array('Paper.id' = $id)));
Admittedly I skimmed through your post, but what sql is executed? Are
sure you sure you've attached the Containable behavior to your model?
Cheers,
Adam
On Dec 26, 1:28 pm, Aidan Lister aidanlis...@gmail.com wrote:
I'm having trouble with the Containable behavior.
My first query,
?php