Skip to content

Commit 7ed7ffc

Browse files
author
Martynas Sudintas
committed
Merge pull request #117 from MindaugasR/fix_116
fixed undefined index error, when child document class has no annotations
2 parents 15dc594 + 92c2600 commit 7ed7ffc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Mapping/MetadataCollector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ private function getSettersAndGetters(\ReflectionClass $reflectionClass, array $
267267
$getters = [];
268268

269269
foreach ($properties as $property => $params) {
270-
if (array_key_exists($property, $this->aliases[$reflectionClass->getName()])) {
270+
if (isset($this->aliases[$reflectionClass->getName()]) &&
271+
array_key_exists($property, $this->aliases[$reflectionClass->getName()])
272+
) {
271273
list($setters[$property], $getters[$property]) = $this
272274
->getInfoAboutProperty(
273275
$params,

0 commit comments

Comments
 (0)