yii2-enhanced-gii icon indicating copy to clipboard operation
yii2-enhanced-gii copied to clipboard

When I updated the master record, the child record on all related tables is soft deleted.

Open moysoft opened this issue 4 years ago • 1 comments

It's a strange behavior or bug? When I updated the master record, all the related records automatically soft deleted.

moysoft avatar May 27 '20 10:05 moysoft

This does happen when the children aren't presented on update. ie:- if we've removed the childrens form from the frontend. loadAll and saveAll expect the children to be present, and if they're not... they'll be soft-deleted.

Hope this helps others ... as it had me going for a few hours :)

drew1two avatar Mar 02 '21 17:03 drew1two