diff --git a/lib/Doctrine/Validator/ErrorStack.php b/lib/Doctrine/Validator/ErrorStack.php index c4e205bcf..0f90e320b 100644 --- a/lib/Doctrine/Validator/ErrorStack.php +++ b/lib/Doctrine/Validator/ErrorStack.php @@ -40,6 +40,7 @@ class Doctrine_Validator_ErrorStack extends Doctrine_Access implements Countable * @var array */ protected $errors = array(); + protected $classname = ""; /** @@ -123,6 +124,11 @@ class Doctrine_Validator_ErrorStack extends Doctrine_Access implements Countable return new ArrayIterator($this->errors); } + public function toArray() + { + return $this->errors; + } + /** * Enter description here... * @@ -140,4 +146,4 @@ class Doctrine_Validator_ErrorStack extends Doctrine_Access implements Countable public function getClassname(){ return $this->classname; } -} \ No newline at end of file +}