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 019ab09 commit 845c3d1Copy full SHA for 845c3d1
src/Mapping/Hydration/Hydrator.php
@@ -62,13 +62,13 @@ public function hydrate(array $data, $object)
62
$propertyName = $property->getName();
63
$propertyConfig = $config->getField($propertyName);
64
$propertyAlias = $propertyConfig->getAlias();
65
+ $property->setAccessible(true);
66
67
// Populate foreignKey
68
if ($propertyConfig->isForeignKey()) {
69
$foreignKey = $propertyConfig->getForeignKey();
70
$entityClass = $foreignKey->getEntityClass();
71
$foreignKeyObject = $this->hydrate($data[$propertyAlias], new $entityClass);
- $property->setAccessible(true);
72
$property->setValue($object, $foreignKeyObject);
73
continue;
74
}
0 commit comments