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
{{ message }}
Repository navigation
ActiveRecord unlink() not applying events/behaviors on junction model - inconsistent with link() #37
When declaring a 'via' (not 'viaTable') relation the respsective behaviors of link() vs unlink() are a bit inconsistent. link() will trigger events and use behaviors on the junction model provided by the 'via' modelClass while unlink() will not.
I think it is really awesome that link() uses insert() on the junction model, but conversely unlink() should also use delete() on the junction model.
Activity
machour commentedon Jan 14, 2019
As I suspect this would break BC, maybe this should be moved to 3.x instead
samdark commentedon Jan 14, 2019
Moved.