public function addRules() { $this->property->relatedPropertiesModel->addRule($this->property->code, 'string'); return $this; }