Commit ca736ec7 authored by zYne's avatar zYne

added toArray()

parent b2c27558
......@@ -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...
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment