diff --git a/Model/Audit.php b/Model/Audit.php index d6a8fd9..e87559c 100644 --- a/Model/Audit.php +++ b/Model/Audit.php @@ -10,13 +10,17 @@ class Audit extends Model { ] ]; - public $actsAs = ['Containable']; + public $actsAs = [ + 'Containable' + ]; + + public $order = [ + 'Audit.id' => 'desc' + ]; public $recursive = -1; public function setupSearchPlugin() { - $this->order = 'Audit.created DESC'; - $this->filterArgs = [ 'event' => ['type' => 'value'], 'model' => ['type' => 'value'],