darkwebdesign / doctrine-enhancement-pack
Doctrine Enhancement Pack
Installs: 23 615
Dependents: 1
Suggesters: 2
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 10
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
Replaces
README
Doctrine Enhancement Pack is a collection of Doctrine enhancements that you can use in your Doctrine projects.
Learn more about it in its documentation.
Features
Event enhancements
- 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-enhancement-pack
composer install
License
Doctrine Enhancement Pack is licensed under the MIT License - see the LICENSE
file for details.