Return Value

Used for identity-based hydration (HYDRATE_OBJECT and HYDRATE_ARRAY).
Puts the elements of a result row into a new array, grouped by the dql alias
they belong to. The column names in the result set are mapped to their
field names during this procedure as well as any necessary conversions on
the values applied. Scalar values are kept in a specific key 'scalars'.

Parameters

array

$data

SQL Result Row.

array

$id

&$id Dql-Alias => ID-Hash.

array

$nonemptyComponents

&$nonemptyComponents Does this DQL-Alias has at least one non NULL value?

Return Value

array

An array with all the fields (name => value) of the data row,
grouped by their component alias.

protected array
gatherScalarRowData(array $data)

Processes a row of the result set.

Used for HYDRATE_SCALAR. This is a variant of _gatherRowData() that
simply converts column names to field names and properly converts the
values according to their types. The resulting row has the same number
of elements as before.