1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] Fixed formatting.

This commit is contained in:
romanb 2009-05-26 11:31:29 +00:00
parent b66d530540
commit 3135799f9e

View File

@ -96,10 +96,10 @@ class ObjectHydrator extends AbstractHydrator
if ($assoc->mappedByFieldName) {
$this->_fetchedAssociations[$assoc->targetEntityName][$assoc->mappedByFieldName] = true;
} else {
$targetClass = $this->_em->getClassMetadata($assoc->targetEntityName);
$targetClass = $this->_em->getClassMetadata($assoc->targetEntityName);
if (isset($targetClass->inverseMappings[$assoc->sourceFieldName])) {
$inverseAssoc = $targetClass->inverseMappings[$assoc->sourceFieldName];
$this->_fetchedAssociations[$assoc->targetEntityName][$inverseAssoc->sourceFieldName] = true;
$inverseAssoc = $targetClass->inverseMappings[$assoc->sourceFieldName];
$this->_fetchedAssociations[$assoc->targetEntityName][$inverseAssoc->sourceFieldName] = true;
}
}
}