Skip to content

Commit

Permalink
remove not used variable $reflFieldValue in ObjectHydrator
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Sep 30, 2019
1 parent 21bc805 commit ccbe5de
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 ccbe5de

Please sign in to comment.