private function saveFieldModel(FieldModel $field) { $this->validateFieldModel($field); // Validate field if (!$this->getFieldsService()->saveField($field)) { $this->addErrors($field->getAllErrors()); throw new Exception('Failed to save field'); } }