/** * @since v1.0.2 */ public function afterValidate($event) { parent::afterValidate($event); foreach ($this->getOwner()->{$this->arrayPropertyName} as $doc) { if (!$doc->validate()) { $this->getOwner()->addErrors($doc->getErrors()); } } }