Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to make events fire in the MANY_MANY join table? #37

Open
mikewalen opened this issue Apr 24, 2013 · 0 comments
Open

Is it possible to make events fire in the MANY_MANY join table? #37

mikewalen opened this issue Apr 24, 2013 · 0 comments
Assignees

Comments

@mikewalen
Copy link

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.

@ghost ghost assigned cebe Jun 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants