From 4cc4101670f75292f43bf40579a62c92fa1cf186 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 21 Oct 2021 11:27:02 +0200 Subject: [PATCH] fix: [in/outboxes] Full support of timestamp behavior --- src/Model/Table/InboxTable.php | 8 +------- src/Model/Table/OutboxTable.php | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) 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');