Download the PHP package wernerdweight/doctrine-cascade-soft-delete-bundle without Composer
On this page you can find all versions of the php package wernerdweight/doctrine-cascade-soft-delete-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wernerdweight/doctrine-cascade-soft-delete-bundle
More information about wernerdweight/doctrine-cascade-soft-delete-bundle
Files in wernerdweight/doctrine-cascade-soft-delete-bundle
Package doctrine-cascade-soft-delete-bundle
Short Description A Symfony bundle that enables your application to cascade on delete even if you're using soft-delete.
License MIT
Homepage https://github.com/wernerdweight/DoctrineCascadeSoftDeleteBundle
Informations about the package doctrine-cascade-soft-delete-bundle
DoctrineCascadeSoftDeleteBundle
A Symfony bundle that enables your application to cascade on delete even if you're using soft-delete.
Installation
1. Download using composer
2. Enable the bundle
Enable the bundle in your kernel:
Configuration
No configuration is required. This bundle automatically extends the default behaviour and soft-deletes any related entities. Use standard Doctrine cascading options (onDelete="CASCADE|DETACH"
).
Trade-offs
To be able to cascade soft-delete, each entity must have an identifier. M:N relationship thus needs to be refactored to an entity with two 1:N relationships. If an M:N related entity is attempted to be cascaded, an exception is thrown.
Each entity that should be able to be cascaded must also be soft-deletable (i.e. has deletedAt
property).
License
This bundle is under the MIT license. See the complete license in the root directiory of the bundle.
All versions of doctrine-cascade-soft-delete-bundle with dependencies
stof/doctrine-extensions-bundle Version ^1.3
symfony/framework-bundle Version ^4.0|^5.0|^6.0
symfony/orm-pack Version ^1.0|^2.0
thecodingmachine/safe Version ^2.4
wernerdweight/ra Version ^2.0
wernerdweight/enhanced-exception Version ^2.0