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

mysql default value on create

Hi, I have some fields in mysql DB set with default values (like the "created" date). When I create a new model in phalcon if I try to save it two times (for testing purpose), without recovery it first, the framework gives me "presence" error. Why phalcon, when I save a model don't pick the default values set on DB?

Solved this before using the beforeValidationOnCreate in the link above.