darkwebdesign/doctrine-enhanced-events

Doctrine Enhanced Events

v2.7.2 2023-11-08 10:29 UTC

This package is auto-updated.

Last update: 2024-04-08 19:01:09 UTC


README

Latest Stable Version Total Downloads License

Build Status Coverage Status PHP Version Doctrine Version

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 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

composer require darkwebdesign/doctrine-enhanced-events
composer install

License

Doctrine Enhanced Events is licensed under the MIT License - see the LICENSE file for details.