From 92c2600c3130f30f0e87cdf74b6ef515f9352424 Mon Sep 17 00:00:00 2001 From: Mindaugas Rukas Date: Fri, 9 Jan 2015 15:54:30 +0200 Subject: [PATCH] fixed array accessing --- Mapping/MetadataCollector.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mapping/MetadataCollector.php b/Mapping/MetadataCollector.php index 5547b9f7..33793989 100644 --- a/Mapping/MetadataCollector.php +++ b/Mapping/MetadataCollector.php @@ -267,7 +267,9 @@ private function getSettersAndGetters(\ReflectionClass $reflectionClass, array $ $getters = []; foreach ($properties as $property => $params) { - if (array_key_exists($property, $this->aliases[$reflectionClass->getName()])) { + if (isset($this->aliases[$reflectionClass->getName()]) && + array_key_exists($property, $this->aliases[$reflectionClass->getName()]) + ) { list($setters[$property], $getters[$property]) = $this ->getInfoAboutProperty( $params,