/** * Инициализирует совойство * @param IProperty $property */ protected function initializeProperty(IProperty $property) { $field = $property->getField(); $propFullName = $property->getFullName(); if ($field instanceof IRelationField && !$field instanceof BelongsToRelationField) { $property->setInitialValue(null); } elseif (array_key_exists($propFullName, $this->initialValues)) { $property->setInitialValue($this->initialValues[$propFullName]); } }