Add version fields into L2C data
This commit is contained in:
parent
8fc1d74820
commit
8e73926359
@ -75,6 +75,10 @@ class DefaultEntityHydrator implements EntityHydrator
|
|||||||
$data = $this->uow->getOriginalEntityData($entity);
|
$data = $this->uow->getOriginalEntityData($entity);
|
||||||
$data = array_merge($data, $metadata->getIdentifierValues($entity)); // why update has no identifier values ?
|
$data = array_merge($data, $metadata->getIdentifierValues($entity)); // why update has no identifier values ?
|
||||||
|
|
||||||
|
if ($metadata->isVersioned) {
|
||||||
|
$data[$metadata->versionField] = $metadata->getFieldValue($entity, $metadata->versionField);
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($metadata->associationMappings as $name => $assoc) {
|
foreach ($metadata->associationMappings as $name => $assoc) {
|
||||||
if ( ! isset($data[$name])) {
|
if ( ! isset($data[$name])) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user