1
0
mirror of synced 2025-02-02 21:41:45 +03:00

clear code

This commit is contained in:
ReenExe 2016-07-02 23:47:21 +03:00
parent ffd1465af2
commit eccec87796

View File

@ -1465,8 +1465,7 @@ class ClassMetadataInfo implements ClassMetadata
$mapping['isOwningSide'] = true; // assume owning side until we hit mappedBy
// unset optional indexBy attribute if its empty
if ( ! isset($mapping['indexBy']) || !$mapping['indexBy']) {
if (empty($mapping['indexBy'])) {
unset($mapping['indexBy']);
}