Open Chofoteddy opened 8 years ago
https://github.com/yiisoft/yii2/pull/7103 Something I started here.
@klimov-paul That's a handy behavior, be nice if something like this was part of yii2.
Any update on this issue? Can we get it on next release?
Definitely not the next release.
This is something for https://github.com/yiisoft/yii2-collection specifically https://github.com/yiisoft/yii2-collection/issues/6
Related with #59
Basically it will take the relation name, the ids to set and will insert/delete from the database accordingly.
Here is the code I am using on my ActiveRecord
Example 1:
Example 2:
can we implement something like this on the core?