/** * @param Property $property * @return $this */ public function addProperty(Property $property) { $this->properties[] = $property; if (isset($this->errors)) { $property->setErrors($this->errors); } $this->propertyMap[$property->getName()] = $property; return $this; }
public function setErrors(ErrorCollection $errors) { parent::setErrors($errors); $this->model->setErrors($errors); }
public function setErrors(ErrorCollection $errors) { parent::setErrors($errors); $this->childProperty->setErrors($errors); }