ActiveRecord\Errors::getIterator PHP 메소드

getIterator() 공개 메소드

This will allow you to iterate over the {@link Errors} object using foreach. foreach ($model->errors as $msg) echo "$msg\n";
    public function getIterator()
    {
        return new ArrayIterator($this->full_messages());
    }