Measurement::afterValidate PHP Method

afterValidate() protected method

protected afterValidate ( )
    protected function afterValidate()
    {
        $this->getPatientMeasurement()->validate();
        foreach ($this->getPatientMeasurement()->getErrors() as $attribute => $errors) {
            foreach ($errors as $error) {
                $this->addError($attribute, $error);
            }
        }
        parent::afterValidate();
    }