php-activerecord
php-activerecord copied to clipboard
Validation errors
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?
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 :-)