Got your email, but will reply in here ... seems I got things slightly
wrong as I forgot that Cake only joins hasOne and belgonsTo
associations by default and as such you cant run a $this->Event->find
() call with a condition from the EventsUsers join table.
Simple way to get around this should be to run
$this->Event->EventsUsers->find('all', array(
'conditions'=>array('EventsUsers.user_id'=>'12')
));
I create models for my join tables, but that's cos I'm a bit of a
control freak and want to know exactly what's going on, but I think
Cake automagically creates join models for you if you haven't.
Give it a go, if it still ain't working I will create a working
example.
Paul.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---