Skip to content

Commit

Permalink
Merge pull request #7840 from peter-gribanov/reflFieldValue
Browse files Browse the repository at this point in the history
Remove not used variable $reflFieldValue in ObjectHydrator
  • Loading branch information
mikeSimonson authored Sep 30, 2019
2 parents 21bc805 + ccbe5de commit d528f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ protected function hydrateRowData(array $row, array &$result)
$this->resultPointers[$dqlAlias] = $reflFieldValue[$index];
}
} elseif (! $reflFieldValue) {
$reflFieldValue = $this->initRelatedCollection($parentObject, $parentClass, $relationField, $parentAlias);
$this->initRelatedCollection($parentObject, $parentClass, $relationField, $parentAlias);
} elseif ($reflFieldValue instanceof PersistentCollection && $reflFieldValue->isInitialized() === false) {
$reflFieldValue->setInitialized(true);
}
Expand Down

0 comments on commit d528f70

Please sign in to comment.