fix: [in/outboxes] Full support of timestamp behavior

pull/79/head
Sami Mokaddem 2021-10-21 11:27:02 +02:00
parent cf2500286a
commit 4cc4101670
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 2 additions and 14 deletions

View File

@ -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');

View File

@ -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');