Commit 3135799f authored by romanb's avatar romanb

[2.0] Fixed formatting.

parent b66d5305
...@@ -96,10 +96,10 @@ class ObjectHydrator extends AbstractHydrator ...@@ -96,10 +96,10 @@ class ObjectHydrator extends AbstractHydrator
if ($assoc->mappedByFieldName) { if ($assoc->mappedByFieldName) {
$this->_fetchedAssociations[$assoc->targetEntityName][$assoc->mappedByFieldName] = true; $this->_fetchedAssociations[$assoc->targetEntityName][$assoc->mappedByFieldName] = true;
} else { } else {
$targetClass = $this->_em->getClassMetadata($assoc->targetEntityName); $targetClass = $this->_em->getClassMetadata($assoc->targetEntityName);
if (isset($targetClass->inverseMappings[$assoc->sourceFieldName])) { if (isset($targetClass->inverseMappings[$assoc->sourceFieldName])) {
$inverseAssoc = $targetClass->inverseMappings[$assoc->sourceFieldName]; $inverseAssoc = $targetClass->inverseMappings[$assoc->sourceFieldName];
$this->_fetchedAssociations[$assoc->targetEntityName][$inverseAssoc->sourceFieldName] = true; $this->_fetchedAssociations[$assoc->targetEntityName][$inverseAssoc->sourceFieldName] = true;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment