I have a behavior that creates two associations using bindModel. Now
if I can find('first') in the model the associations are available.
Great everything is working and I'm happy, well not quite,
unfortunately these associations seem to disappear when I call
find('all') on the same model.
The odd thing is if a put another completely unrelated bindModel call
in the constructor of the model (after I've called the parent
constructor) the associations appear when I call find('all'), however
if I take that same completely unrelated bindModel call and place in
the setup method of the behavior and call find('all') the associations
are gone again.
Ok, so now I'm thinking this has something to do with the difference
between when the setup method is called for behaviors and when the
constructor is called for models. However I stop coding here and go
to ask the community for help because I'm a newbie to cake (heard
about it a while ago and starting using it a week ago) and I over my
head here.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---