xcentric/soft-deleteable-extension-bundle
Xcentric SoftDeleteable Extension Bundle adds soft-delete support for Doctrine entities in Symfony, marking records as deleted instead of removing them and enabling filtered queries, restore, and permanent purge workflows.
SoftDeleteable behavior.SoftDeleteableListener, a cascade extension becomes a shared convention across teams — a reusable rule ("soft-delete always cascades to owned aggregates") rather than a per-feature decision.Consider it only if all of the following hold:
SoftDeleteableListener and have hit the missing-cascade limitation in production.onFlush listener wouldn't cleanly give you.Look elsewhere when:
SoftDeletes with explicit cascade handling in model events or a dedicated observer.E-vence/SoftDeleteableListenerExtensionBundle" — an unmaintained fork of a fork. Audit the full diff before trusting it.ON DELETE CASCADE or explicit deletion orchestration.onFlush event subscriber that walks associations and issues soft-delete updates is roughly a day of work and gives you ownership, tests, and no third-party risk. For most teams, this is the correct path.stof/doctrine-extensions-bundle for Gedmo wiring plus your own cascade layer, rather than an unknown single-purpose bundle.For executives (one paragraph): This is a small open-source component that closes a known gap in how our application "deletes" records — it makes deletion cascade to related records while keeping everything recoverable for audit and compliance. The capability is valuable for retention and restore features on our roadmap. The package itself, however, has no adoption, no community behind it, and is a lightly-adjusted fork of another unmaintained project, so I do not recommend taking it as a production dependency. Instead, I recommend budgeting roughly one engineer-day to adopt the pattern in-house (or vendor the code with tests and a pinned commit). That gives us the compliance-enabling behavior at negligible cost and without supply-chain exposure.
For engineering (summary): It's a Symfony bundle that extends Gedmo's SoftDeleteableListener to cascade soft-deletes across Doctrine associations — the thing SoftDeleteable famously doesn't do out of the box. Implementation is small and readable. Recommendation: do not depend on the GitLab package directly (0 stars, 0 dependents, forked provenance, no visible tests or docs). Either (a) copy the listener into our codebase behind our own namespace with unit tests covering association graphs, cycles, and onFlush ordering, or (b) reimplement with a Symfony onFlush subscriber we control. Either way, pair it with a scheduled hard-delete/purge job for retention windows, and add integration tests that assert no active children survive a parent delete.
How can I help you explore Laravel packages today?