Doctrine\ORM\Internal\Hydration\ObjectHydrator::_initRelatedCollection
Initializes a related collection.
Signature
private function _initRelatedCollection(
$entity,
ClassMetadata
$class,
string
$fieldName,
string
$parentDqlAlias )
Parameters
$entity
— object- The entity to which the collection belongs.
$class
— object
$fieldName
— string- The name of the field on the entity that holds the collection.
$parentDqlAlias
— string- Alias of the parent fetch joining this collection.