-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I am using below query to set order direction.
$order[$sortField] = $sortDirection;
$query = $this->getTable()
->find('search', ['search' => $requestQuery])
->order($order);
I am using below event. It is setting pagination.
$this->dispatchEvent('Action.Crud.afterFindEntities', compact('query', 'records'));
Is it possible to use order automatically instead of setting it manually like paginator.
Paginator Example:
public $paginate = [
'limit' => 25,
'order' => [
'Articles.title' => 'asc'
]
];
Metadata
Metadata
Assignees
Labels
No labels