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);
$this->
updateCommandQueue($definition,
$parameters,
$existence,
$pkData,
$data);
$translation =
$definition->
getField('translations'
);
if ($translation instanceof TranslationsAssociationField
) { $this->
map([$translation],
$stack,
$existence,
$parameters);
} // call map with child associations only
$children =
array_filter($fields,
static fn (Field
$field) =>
$field instanceof ChildrenAssociationField
);
if (\
count($children) > 0
) { $this->
map($children,
$stack,
$existence,
$parameters);
}