Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
sort by id instead of created, their order is the same anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed May 31, 2014
1 parent 4af6683 commit de1c3f6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Model/Audit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit de1c3f6

Please sign in to comment.