return $mapped;
} /**
* Allows simple overwrite for specialized entity hydrators
*
* @param array<mixed> $row
*/
protected function assign(EntityDefinition
$definition, Entity
$entity, string
$root, array
$row, Context
$context): Entity
{ $entity =
$this->
hydrateFields($definition,
$entity,
$root,
$row,
$context,
$definition->
getFields());
return $entity;
} /**
* @param array<mixed> $row
* @param iterable<Field> $fields
*/
protected function hydrateFields(EntityDefinition
$definition, Entity
$entity, string
$root, array
$row, Context
$context, iterable
$fields): Entity
{ /** @var ArrayStruct<string, mixed> $foreignKeys */