Iteration simplified
This commit is contained in:
parent
82c87081b4
commit
60a2628f9d
@ -346,9 +346,7 @@ class BasicEntityPersister implements EntityPersister
|
|||||||
|
|
||||||
$types = [];
|
$types = [];
|
||||||
foreach ($id as $field => $value) {
|
foreach ($id as $field => $value) {
|
||||||
foreach ($this->getTypes($field, $value, $versionedClass) as $type) {
|
$types = array_merge($types, $this->getTypes($field, $value, $versionedClass));
|
||||||
$types[] = $type;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$flatId = $this->identifierFlattener->flattenIdentifier($versionedClass, $id);
|
$flatId = $this->identifierFlattener->flattenIdentifier($versionedClass, $id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user