Hi :)
On my project, I'm only using Phalcon's ORM/Model. Validations, MVC and all the rest are responsible by another tools.
I have a table with name, email and password. When I try to update a row, like below, the method is "automagically" validating the fields:
$row = new Models\Admins();
$row->setId( 1 );
$row->setName( 'Test' );
$row->save();
pr( $row->getMessages() );
Returns:
Array ( [0] => Phalcon\Mvc\Model\Message Object ( [_type:protected] => Email [_message:protected] => Value of field 'email' must have a valid e-mail format [_field:protected] => email [_model:protected] => )
)
I'd like to disable this kind of validation on all of my tables. How could I do that?
Thanks again! :)