yii2-enhanced-gii
yii2-enhanced-gii copied to clipboard
When I updated the master record, the child record on all related tables is soft deleted.
It's a strange behavior or bug? When I updated the master record, all the related records automatically soft deleted.
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 :)