$generatedId =
$idGenerator->
generateId($this->em,
$entity);
$id =
[$this->class->identifier
[0
] =>
$generatedId];
$postInsertIds[] =
[ 'generatedId' =>
$generatedId,
'entity' =>
$entity,
];
} else { $id =
$this->class->
getIdentifierValues($entity);
} if ($this->class->requiresFetchAfterChange
) { $this->
assignDefaultVersionAndUpsertableValues($entity,
$id);
} } $this->queuedInserts =
[];
return $postInsertIds;
} /**
* Retrieves the default version value which was created
* by the preceding INSERT statement and assigns it back in to the
* entities version field if the given entity is versioned.
* Also retrieves values of columns marked as 'non insertable' and / or
* 'not updatable' and assigns them back to the entities corresponding fields.
*
* @param object $entity
* @param mixed[] $id
*
* @return void
*/