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 2.0.0 migration

Hi, I actually checkout to phalcon 2.0.0 and I installed it successfully. All seems to work perfect ( so fast :3 ) but all my models with default date attrs like 'created' and 'update' doesn't work, saving rows but with empty dates

I skip attrs on create for the 'created TIMESTAMP DEFAULT CURRENT_TIMESTAMP' sql postgre code.

$this->skipAttributesOnCreate(array('created', 'updated'));

Thanks

Hello

I think you should use Timestampable behavior on your models, here is an example of usage

https://forum.phalcon.io/discussion/451/timestampable-behavior#C1846