/** * @return array */ public function getErrors() { if (!$this->form->getIsBound()) { return array(); } if (!$this->isValidated) { $this->validate(); } return $this->errors; }