From eccec87796d5437aed635e9f482ba1d7f4d35527 Mon Sep 17 00:00:00 2001 From: ReenExe Date: Sat, 2 Jul 2016 23:47:21 +0300 Subject: [PATCH] clear code --- lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php index 5fa8f9e07..1d618c2da 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php @@ -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']); }