34 $field = $this->entity->getField($fieldName);
39 if ($this->state !== State::RAW && !$this->sysIsFilled($fieldName))
41 $this->fill($fieldName);
45 return parent::sysSetValue($fieldName, $value);
48 public function sysSaveRelations(
Result $result)
50 parent::sysSaveRelations($result);
53 foreach ($this->entity->getFields() as $field)
57 if ($this->sysHasValue($field->getName()) && !empty($this->
get($field->getName())))
60 $valueObject = $this->
get($field->getName());
62 if ($valueObject->state == State::RAW)
68 elseif ($valueObject->state == State::CHANGED)