Id=0; $this->Title=''; $this->FieldIds=[]; $this->Icon=(new IconOptionsDTO())->Merge(); $this->Image=(new IconOptionsDTO())->Merge(); $this->Conditions=[]; $this->AddType("FieldIds","Numeric"); $this->AddType("Conditions","ConditionBaseOptionsDTO"); } public function GetValueFromLoader($property,$value){ switch($property){ case "Conditions": return \rednaoeasycalculationforms\DTO\core\Factories\ConditionFactory::GetConditions($value); default: return parent::GetValueFromLoader($property, $value); } } }