ActiveRecord\Errors::__toString PHP 메소드

__toString() 공개 메소드

This function is called implicitely if the object is casted to a string: echo $error; # "Name can't be blank\nState is the wrong length (should be 2 chars)"
public __toString ( ) : string
리턴 string
    public function __toString()
    {
        return implode("\n", $this->full_messages());
    }