ArrayHydrator
extends AbstractHydrator
in package
Table of Contents
Properties
- $_identifierMap : array<string|int, mixed>
- $_idTemplate : array<string|int, mixed>
- $_isSimpleQuery : bool
- $_resultCounter : int
- $_resultPointers : array<string|int, mixed>
- $_rootAliases : array<string|int, mixed>
Methods
- hydrateAllData() : mixed
- {@inheritdoc}
- hydrateRowData() : mixed
- {@inheritdoc}
- prepare() : mixed
- {@inheritdoc}
- updateResultPointer() : void
- Updates the result pointer for an Entity. The result pointers point to the last seen instance of each Entity type. This is used for graph construction.
Properties
$_identifierMap
protected
array<string|int, mixed>
$_identifierMap
= array()
$_idTemplate
protected
array<string|int, mixed>
$_idTemplate
= array()
$_isSimpleQuery
protected
bool
$_isSimpleQuery
= false
$_resultCounter
protected
int
$_resultCounter
= 0
$_resultPointers
protected
array<string|int, mixed>
$_resultPointers
= array()
$_rootAliases
protected
array<string|int, mixed>
$_rootAliases
= array()
Methods
hydrateAllData()
{@inheritdoc}
protected
hydrateAllData() : mixed
hydrateRowData()
{@inheritdoc}
protected
hydrateRowData(array<string|int, mixed> $row, array<string|int, mixed> &$result) : mixed
Parameters
- $row : array<string|int, mixed>
- $result : array<string|int, mixed>
prepare()
{@inheritdoc}
protected
prepare() : mixed
updateResultPointer()
Updates the result pointer for an Entity. The result pointers point to the last seen instance of each Entity type. This is used for graph construction.
private
updateResultPointer(array<string|int, mixed> &$coll, bool|int $index, string $dqlAlias, bool $oneToOne) : void
Parameters
- $coll : array<string|int, mixed>
-
The element.
- $index : bool|int
-
Index of the element in the collection.
- $dqlAlias : string
- $oneToOne : bool
-
Whether it is a single-valued association or not.