Phalcon behaviours not working
Clash Royale CLAN TAG #URR8PPP Phalcon behaviours not working I'm trying to get some Phalcon PHP behaviour going, but it's not working in my model as expected. Here's the initialize function of my model: public function initialize() { $this->addBehavior( new Timestampable( [ 'beforeCreate' => [ 'field' => 'created_at', 'format' => 'Y-m-d H:i:s', ] ] ) ); $this->addBehavior( new Timestampable( [ 'beforeCreate' => [ 'field' => 'updated_at', 'format' => 'Y-m-d H:i:s', ] ] ) ); } This does not save the timestamps to the database when I create a new instance in my code. The lock is saved like this: $lock = new TradesLocks(); $lock->trad...