fix: [in/outboxes] Full support of timestamp behavior
parent
cf2500286a
commit
4cc4101670
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue