Skip to content

Commit

Permalink
Merge pull request #7851 from peter-gribanov/reflFieldValue2.6
Browse files Browse the repository at this point in the history
Remove not used variable $reflFieldValue in ObjectHydrator
  • Loading branch information
lcobucci committed Oct 4, 2019
2 parents b226043 + 5b00d7b commit a36809d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
Expand Up @@ -422,7 +422,7 @@ protected function hydrateRowData(array $row, array &$result)
$this->resultPointers[$dqlAlias] = $reflFieldValue[$index];
}
} else if ( ! $reflFieldValue) {
$reflFieldValue = $this->initRelatedCollection($parentObject, $parentClass, $relationField, $parentAlias);
$this->initRelatedCollection($parentObject, $parentClass, $relationField, $parentAlias);
} else if ($reflFieldValue instanceof PersistentCollection && $reflFieldValue->isInitialized() === false) {
$reflFieldValue->setInitialized(true);
}
Expand Down

0 comments on commit a36809d

Please sign in to comment.