Doctrine\ORM\Internal\Hydration\AbstractHydrator::gatherRowData
Processes a row of the result set.
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 specfic key 'scalars'.
Signature
protected function gatherRowData(array
$data,
array&
$cache,
array&
$id,
array&
$nonemptyComponents )
Parameters
$data
— array- SQL Result Row
$cache
— array$id
— array$nonemptyComponents
— array
Returns
- array
- An array with all the fields (name => value) of the data row,
grouped by their component alias.