https://github.com/darkwebdesign/doctrine-enhancement-pack
Doctrine Enhancement Pack
https://github.com/darkwebdesign/doctrine-enhancement-pack
doctrine events php
Last synced: about 1 year ago
JSON representation
Doctrine Enhancement Pack
- Host: GitHub
- URL: https://github.com/darkwebdesign/doctrine-enhancement-pack
- Owner: darkwebdesign
- License: mit
- Created: 2017-10-05T10:02:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T18:01:28.000Z (over 2 years ago)
- Last Synced: 2025-03-25T05:03:34.376Z (over 1 year ago)
- Topics: doctrine, events, php
- Language: PHP
- Size: 76.2 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Doctrine Enhancement Pack
[](https://packagist.org/packages/darkwebdesign/doctrine-enhancement-pack)
[](https://packagist.org/packages/darkwebdesign/doctrine-enhancement-pack)
[](https://packagist.org/packages/darkwebdesign/doctrine-enhancement-pack)
[](https://travis-ci.com/darkwebdesign/doctrine-enhancement-pack?branch=2.7)
[](https://codecov.io/gh/darkwebdesign/doctrine-enhancement-pack)
[](https://php.net/)
[](http://www.doctrine-project.org/)
Doctrine Enhancement Pack is a collection of Doctrine enhancements that you can use in your Doctrine projects.
Learn more about it in its [documentation](https://github.com/darkwebdesign/doctrine-enhancement-pack/blob/2.7/doc/index.md).
## Features
### Event enhancements
* Access to the original entity in the `pre-update` and `post-update` lifecycle events.
* Access to the created, updated (also their original entities) and deleted entities in the `on-flush` and `post-flush` events.
* Modifying the actual entities (instead of via "change set" array) in the `on-flush` event and `pre-update` lifecycle event.
* Automatic recomputing of the "change set" after modifying the entities in the `on-flush` event.
## Installing via Composer
```bash
composer require darkwebdesign/doctrine-enhancement-pack
```
```bash
composer install
```
## License
Doctrine Enhancement Pack is licensed under the MIT License - see the `LICENSE` file for details.