andanteproject/soft-deletable-bundle
Adopt This Package If:
DROP TABLE or schema migrations).Look Elsewhere If:
gedmo/doctrine-extensions)."This package lets us retain data temporarily without permanent loss, reducing compliance risks and enabling features like ‘undelete’ for users. For example, if a customer accidentally deletes their account, we can restore it within 30 days—boosting retention and trust. It’s a low-code, high-impact solution that integrates seamlessly with our existing Symfony stack, saving dev time while future-proofing our data management."
Key Outcomes:
*"This bundle provides a drop-in soft-deletion layer for Doctrine entities with zero config for 80% of use cases. It’s lightweight, trait-based, and plays well with Symfony’s ecosystem. Here’s how we’d leverage it:
SoftDeletableTrait to key entities (e.g., User, Post) in <5 minutes per entity.Trade-offs:
QueryBuilder or disable filters).Next Steps:
User and Order entities in staging.disableFilter method."*Tech Deep Dive:
deleted_at column (indexed by default) and filters out soft-deleted records via Doctrine’s DQL WHERE deleted_at IS NULL.gedmo/doctrine-extensions (more features but heavier) or custom traits (more maintenance)."How can I help you explore Laravel packages today?