1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Iteration simplified

This commit is contained in:
Alessandro Frangioni 2017-06-20 09:25:14 +02:00 committed by Luís Cobucci
parent 82c87081b4
commit 60a2628f9d
No known key found for this signature in database
GPG Key ID: EC61C5F01750ED3C

View File

@ -346,9 +346,7 @@ class BasicEntityPersister implements EntityPersister
$types = [];
foreach ($id as $field => $value) {
foreach ($this->getTypes($field, $value, $versionedClass) as $type) {
$types[] = $type;
}
$types = array_merge($types, $this->getTypes($field, $value, $versionedClass));
}
$flatId = $this->identifierFlattener->flattenIdentifier($versionedClass, $id);