NotificationHistory: Add sort rules

This commit is contained in:
Eric Lippmann 2019-11-04 16:41:48 +01:00
parent 5638139786
commit 669ab2035f

View file

@ -38,6 +38,11 @@ class NotificationHistory extends Model
];
}
public function getSortRules()
{
return ['event_time DESC'];
}
public function createBehaviors(Behaviors $behaviors)
{
$behaviors->add(new Timestamp([