mootensai / yii2-enhanced-gii

Enhanced Yii2 Gii (generator) that generates related Models & CRUD
MIT License
203 stars 98 forks source link

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

Open moysoft opened 4 years ago

moysoft commented 4 years ago

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

drew1two commented 3 years ago

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 :)