diff --git a/src/Model/Table/InboxTable.php b/src/Model/Table/InboxTable.php index 716d246..0c62a80 100644 --- a/src/Model/Table/InboxTable.php +++ b/src/Model/Table/InboxTable.php @@ -18,13 +18,7 @@ class InboxTable extends AppTable { parent::initialize($config); $this->addBehavior('UUID'); - $this->addBehavior('Timestamp', [ - 'events' => [ - 'Model.beforeSave' => [ - 'created' => 'new' - ] - ] - ]); + $this->addBehavior('Timestamp'); $this->belongsTo('Users'); $this->setDisplayField('title'); diff --git a/src/Model/Table/OutboxTable.php b/src/Model/Table/OutboxTable.php index 05ed8fc..02fd442 100644 --- a/src/Model/Table/OutboxTable.php +++ b/src/Model/Table/OutboxTable.php @@ -18,13 +18,7 @@ class OutboxTable extends AppTable { parent::initialize($config); $this->addBehavior('UUID'); - $this->addBehavior('Timestamp', [ - 'events' => [ - 'Model.beforeSave' => [ - 'created' => 'new' - ] - ] - ]); + $this->addBehavior('Timestamp'); $this->belongsTo('Users'); $this->setDisplayField('title');