Rod Elias Sun Apr 06 16:55:53 -0400 2014

Subject: Custom validation not working.

Hi folks.
Just downloaded the latest version of PHP-AR and I'm having some problems with custom validation.

My model class can be seen here: https://gist.github.com/anonymous/10011329

Then my index.php uses something like: https://gist.github.com/anonymous/10011338

For some reason, the validate() method is not being called.
My database structure is as shown here: https://gist.github.com/anonymous/10011359

Any help please?
You guys rock!


Rod Elias Mon Apr 07 07:58:01 -0400 2014

Rod Elias wrote:

Hi folks. Just downloaded the latest version of PHP-AR and I'm having some problems with custom validation.

My model class can be seen here: https://gist.github.com/anonymous/10011329

Then my index.php uses something like: https://gist.github.com/anonymous/10011338

For some reason, the validate() method is not being called. My database structure is as shown here: https://gist.github.com/anonymous/10011359

Any help please? You guys rock!

Sorry folks.
I was using version 1.0 (php-activerecord-1.0.tgz)
I tried this (http://github.com/kla/php-activerecord) and everything is now working fine.
Thanks anyway!

(1-1/1)