You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saving records in a MANY_MANY relationship works really well. In my particular case, I have a couple of behaviors attached to my MANY_MANY join/intermediate table that need to run code in the beforeSave and afterSave events (e.g. I have a timestamp behavior that needs to add a created and modified date to the join table).
Is there any way that I can get these events to fire when doing a MANY_MANY save?
I see at line 156 in the EActiveRecordRelationBehavior.php you use a CDBCommandBuilder insert command to insert records to the MANY_MANY join table, but I cant seem to figure out what I would need to add/change to get the events to fire.
The text was updated successfully, but these errors were encountered:
Fantastic Behavior BTW.
Saving records in a MANY_MANY relationship works really well. In my particular case, I have a couple of behaviors attached to my MANY_MANY join/intermediate table that need to run code in the beforeSave and afterSave events (e.g. I have a timestamp behavior that needs to add a created and modified date to the join table).
Is there any way that I can get these events to fire when doing a MANY_MANY save?
I see at line 156 in the EActiveRecordRelationBehavior.php you use a CDBCommandBuilder insert command to insert records to the MANY_MANY join table, but I cant seem to figure out what I would need to add/change to get the events to fire.
The text was updated successfully, but these errors were encountered: