darkwebdesign / doctrine-enhanced-events
Doctrine Enhanced Events
v2.7.2
2023-11-08 10:29 UTC
Requires
- php: ^7.1
- doctrine/event-manager: ^1.1
- doctrine/orm: 2.7.*
- doctrine/persistence: ^1.3.3 || ^2.0
Requires (Dev)
- darkwebdesign/doctrine-unit-testing: 2.7.*
- doctrine/data-fixtures: ^1.1
- phpunit/phpunit: ^7.5
Suggests
- darkwebdesign/doctrine-enhancement-pack: All Doctrine enhancements bundled together
README
Doctrine Enhanced Events offers enhanced versions of the original Doctrine (lifecycle) events.
Learn more about it in its documentation.
Features
- Access to the original entity in the
pre-update
andpost-update
lifecycle events. - Access to the created, updated (also their original entities) and deleted entities in the
on-flush
andpost-flush
events. - Modifying the actual entities (instead of via "change set" array) in the
on-flush
event andpre-update
lifecycle event. - Automatic recomputing of the "change set" after modifying the entities in the
on-flush
event.
Installing via Composer
composer require darkwebdesign/doctrine-enhanced-events
composer install
License
Doctrine Enhanced Events is licensed under the MIT License - see the LICENSE
file for details.