yii2-relation-trait
yii2-relation-trait copied to clipboard
Feature Request: softDelete()
Unless I'm using this trait incorrectly, to use soft deletes we need to always use the method $model->deleteWithRelated(). The method $model->delete() continues to do a hard delete. While I like that $model->deleteWithRelated() recurses through children data to soft delete them as well as the parent, sometimes it would be nice to simply have a softDelete() instead of building an exception list for $skippedRelations.
Is that on the drawing board? Would you accept a PR with this method if not?