Releases: hostnet/entity-tracker-component
Update phpcs-tool to 9.1.0 with Hostnet-Level-1
Support PHP8
- Supports PHP8
More consistent behavior for entity change event
This release will provide more consistent behavior when the entity change event is triggered. It will now only fire when flushing and no longer when persisting. This caused some unexpected results in some cases where changes were made after a persist of a new entity.
This release includes the following pull requests:
Fixed issue that association fields are missing from original data
In some rare cases the association fields can be missing from the original data. In order to fix that they are copied from the original entity.
Fixed issue that identifier fields are missing from original data
Fixed issue that identifier fields are missing from original data.
Less visible logging
The EventListener used to send log messages as info
. In this version debug
is used instead.
only handle relations that have a column in DB for table
Merge pull request #27 from hboomsma/assoc Do not handle changes to fields not in the corresponding DB table
Fire event for cascaded persisted entities
- 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.
Allow installation in PHP7
- adjusted composer.json for PHP7 pre-releases.
- build for PHP7 in travis
Bugfix Release
Fixes a critical bug with proxies not being detected as changed when they have been initialized already.