[2.0] Fixed formatting.
This commit is contained in:
parent
b66d530540
commit
3135799f9e
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user