darkwebdesign / doctrine-enhanced-events
Doctrine Enhanced Events
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/darkwebdesign/doctrine-enhanced-events
Requires
- php: >=7.2
- doctrine/event-manager: ^1.1
- doctrine/orm: 2.11.*
- doctrine/persistence: ^2.2
Requires (Dev)
- doctrine/cache: ^1.13
- doctrine/data-fixtures: ^1.5
- friendsofphp/php-cs-fixer: ^3.4
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^1.12
- phpstan/phpstan-doctrine: ^1.5
- phpstan/phpstan-phpunit: ^1.4
- phpunit/phpunit: ^8.5
- rector/rector: ^1.2
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.
License
Doctrine Enhanced Events is licensed under the MIT License - see the LICENSE
file for details.