protected function createNewField(Field $field, Content $content)
{
$field->versionNo = $content->versionInfo->versionNo;
$field->id = $this->contentGateway->insertNewField($content, $field, $this->mapper->convertToStorageValue($field));
// If the storage handler returns true, it means that $field value has been modified
// So we need to update it in order to store those modifications
// Field converter is called once again via the Mapper
if ($this->storageHandler->storeFieldData($content->versionInfo, $field) === true) {
$this->contentGateway->updateField($field, $this->mapper->convertToStorageValue($field));
}
}