I asked many questions on here before eventually realising Cake will
not automatically join a deep ( User -> Event -> EventType) belongsTo
association so recursive would not help, but I'm certain contain
should catch it?!?
The other option is to force a join from User to EventType by
unbinding the Event -> EventType join ...
$this->User->Event->unbindModel(array('belongsTo' => array
('EventType')));
Then joining User direct to EventType ...
$this->User->bindModel(array('belongsTo' => array('EventType' => array
(
'className' => 'EventType',
'foreignKey' => false,
'conditions' => 'Event.event_type_id = EventType.id',
))));
Regards,
Paul.
On Feb 15, 6:30 pm, mscdex <[email protected]> wrote:
> On Feb 15, 12:00 pm, mike <[email protected]> wrote:
>
> > any other ideas?
>
> Did you try specifying a high enough 'recursive' level?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---