added toArray()
This commit is contained in:
parent
b2c275583e
commit
ca736ec75a
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue