English
php
gdpr
soft-delete
orm
mysql
shinobi-apps-framework
Soft delete in PHP: why it matters for GDPR and how to implement it correctly
Model soft delete: opt-in $softDelete = true adds automatic WHERE deleted_at IS NULL to query(), withTrashed() / onlyTrashed() for admin bypass, trash(deletedBy) vs delete(), GdprRetentionJob atomic transaction (DELETE + auditLogger in one commit), GDPR_RETENTION sentinel, 2-year audit log cleanup.