yii2-relation-trait
yii2-relation-trait copied to clipboard
Deletion of has many relation works wrong
- add new first has-many relation to entity (with empty id)
- save all relations
- add new second has-many relation and delete first (with empty id)
- save all relations
- first relation won't be deleted
it not complite solution this issue , if we use loadAll function, function dont delete all rel models , only if we add 2 and delete 1 its work , if delete 2 of 2 its load old 2 rel models