We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon model field is required

I got an error everytime I want to save my form, the error is that field_name is required for every field in my form even though all of them are provided and passed succssfuly to the model

Hi @kwedaa all fiels marked like not null in your db table are required in your model. You can change your db table or disable this behavior.

// in your bootstrap
\Phalcon\Mvc\Model::setup(
    [
        'notNullValidations' => false,
    ]
);

docs. Good luck