colum "x" cannot be null

\Phalcon\Mvc\Model::setup(array( 'not Null Validation' => false ));

i find that code will be my hero . But on where should i use that code ? Where i put it on ?



84.5k

Just place it before any save() you want to avoid the automatic validation:

\Phalcon\Mvc\Model::setup(array('notNullValidations' => false));