From ca736ec75a7528a14114dfec806ef7de130b49c6 Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 14 Nov 2007 21:06:30 +0000 Subject: [PATCH] added toArray() --- lib/Doctrine/Validator/ErrorStack.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 +}