Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Dec 8, 2021
1 parent e79df3f commit 68c5afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/crud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ Search, Order, and Pagination Options
// (user can later change this sorting by clicking on the table columns)
->setDefaultSort(['id' => 'DESC'])
->setDefaultSort(['id' => 'DESC', 'title' => 'ASC', 'startsAt' => 'DESC'])
// for `AssociationField`s, the sorting depends on the entities `__toString()` method
->setDefaultSort(['seller' => 'ASC'])
// you can sort by Doctrine associations up to two levels
->setDefaultSort(['seller.name' => 'ASC'])

// the max number of entities to display per page
->setPaginatorPageSize(30)
Expand Down

0 comments on commit 68c5afe

Please sign in to comment.