We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33fd5c9 commit 019ab09Copy full SHA for 019ab09
src/Mapping/Hydration/Hydrator.php
@@ -68,6 +68,7 @@ public function hydrate(array $data, $object)
68
$foreignKey = $propertyConfig->getForeignKey();
69
$entityClass = $foreignKey->getEntityClass();
70
$foreignKeyObject = $this->hydrate($data[$propertyAlias], new $entityClass);
71
+ $property->setAccessible(true);
72
$property->setValue($object, $foreignKeyObject);
73
continue;
74
}
@@ -94,4 +95,4 @@ public function hydrate(array $data, $object)
94
95
96
return $object;
97
-}
98
+}
0 commit comments