Hi there,

I am trying to make use of a JoinModel for the first time but can't
get the hang of it. First I had some problems getting the class to
load at all but that is taken care of. Now I cant get all the
callbacks to fire.

I create associations between records of my two models expecting
beforeSave and afterSave to fire. But they don't.

I know the joining model is being used ($this->ModelA->ModelAsModelB
== instance of my expected class) and callbacks beforeFind and
afterFind are firing.

I found two old posts. One suggested using beforeSave (for whatever
purpose), suggesting to me that they should fire. The other suggested
using a callback on one of the "primary" models to call a custom
method on the joining model, suggesting that the callbacks should in
fact not fire.

Looking at the models used in the core tests I found no joining model
with any callback defined.

Does this mean that a joining model is really only "half a model"?
Since I haven't found anything to clearly state the opposite I have
expected these models to behave like any other once created. can
anyone clear the fog a little for me?

/Martin


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to