php-activerecord icon indicating copy to clipboard operation
php-activerecord copied to clipboard

Validation errors

Open Abe90 opened this issue 10 years ago • 1 comments

When I try to add a custom validation, using the method

$Model->errors->add('test', "a test");

I will return this error: Fatal error: Call to a member function add() on null

what is wrong?

Abe90 avatar Mar 05 '15 14:03 Abe90

I'm sorry, I have not read the last line of documentation.

(This feature is available since v1.1 or nightly builds.)

I recommend you make it more visible :-)

Abe90 avatar Mar 05 '15 15:03 Abe90