https://github.com/darkwebdesign/doctrine-enhanced-events
Doctrine Enhanced Events [READ-ONLY] Subtree split of https://github.com/darkwebdesign/doctrine-enhancement-pack
https://github.com/darkwebdesign/doctrine-enhanced-events
doctrine events php
Last synced: about 1 month ago
JSON representation
Doctrine Enhanced Events [READ-ONLY] Subtree split of https://github.com/darkwebdesign/doctrine-enhancement-pack
- Host: GitHub
- URL: https://github.com/darkwebdesign/doctrine-enhanced-events
- Owner: darkwebdesign
- License: mit
- Created: 2017-10-05T09:54:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T18:01:42.000Z (over 2 years ago)
- Last Synced: 2025-01-24T20:45:51.568Z (over 1 year ago)
- Topics: doctrine, events, php
- Language: PHP
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Doctrine Enhanced Events
[](https://packagist.org/packages/darkwebdesign/doctrine-enhanced-events)
[](https://packagist.org/packages/darkwebdesign/doctrine-enhanced-events)
[](https://packagist.org/packages/darkwebdesign/doctrine-enhanced-events)
[](https://travis-ci.com/darkwebdesign/doctrine-enhanced-events?branch=2.7)
[](https://codecov.io/gh/darkwebdesign/doctrine-enhanced-events)
[](https://php.net/)
[](http://www.doctrine-project.org/)
Doctrine Enhanced Events offers enhanced versions of the original Doctrine (lifecycle) events.
Learn more about it in its [documentation](https://github.com/darkwebdesign/doctrine-enhancement-pack/blob/2.7/doc/reference/events.md).
## Features
* 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-enhanced-events
```
```bash
composer install
```
## License
Doctrine Enhanced Events is licensed under the MIT License - see the `LICENSE` file for details.