Skip to content

Fire event for cascaded persisted entities

Compare
Choose a tag to compare
@hboomsma hboomsma released this 09 Aug 07:30
· 33 commits to master since this release
  • Issue #17 was closed by PR #26 Fire event for cascaded persisted entities.
  • Drop support for PHP versions 5.4 and 5.5, those are EOL
  • Upgrade to phpunit 5
  • Require doctrine.orm >2.4
  • Functional test added

To Keep your current code working you register another event:

$event_manager->addEventListener('prePersist', $entity_changed_listener);

If you are using the bundle you do not have to bother, because it will register the new
event for you.