yii2-relation-trait icon indicating copy to clipboard operation
yii2-relation-trait copied to clipboard

Deletion of has many relation works wrong

Open terrasoff opened this issue 7 years ago • 1 comments

  • 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

terrasoff avatar Mar 30 '18 03:03 terrasoff

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

izac1 avatar May 13 '18 18:05 izac1