/** @var Field&StorageAware $pkField */
foreach ($definition->
getPrimaryKeys() as $pkField) { $parameters->
getContext()->
set( $parameters->
getDefinition()->
getEntityName(),
$pkField->
getPropertyName(),
$pkField->
getSerializer()->
decode($pkField,
$pkData[$pkField->
getStorageName()]),
);
} if ($definition instanceof MappingEntityDefinition
) { // gateway will execute always a replace into
$existence = EntityExistence::
createForEntity($definition->
getEntityName(),
[]);
} else { $existence =
$this->entityExistenceGateway->
getExistence($definition,
$pkData,
$rawData,
$parameters->
getCommandQueue());
} $stack =
$this->
createDataStack($existence,
$definition,
$parameters,
$rawData);
$mainFields =
$this->
getMainFields($fields);
// without child association
$data =
$this->
map($mainFields,
$stack,
$existence,
$parameters);