Skip to content

Commit

Permalink
Merge pull request #128 from leonex-cstoller/config_hint_order_fetch_…
Browse files Browse the repository at this point in the history
…joined_to_many

Extended documentation to prevent exception when ordering on fetch joined to-many association
  • Loading branch information
pilot committed Jun 24, 2015
2 parents 8c1c1aa + ef3fbd4 commit f5b5cb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/pager/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ If set to true, will add a distinct sql keyword on orm queries to ensuire unicit
If set to true, will take advantage of doctrine 2.3 output walkers by using subqueries to handle composite keys and HAVING queries.
This can considerably impact performances depending on the query and the platform, you will have to consider it at some point.

If you want to order your results by a column from a fetch joined t-many association,
you have to set `wrap-queries` to `true`. Otherwise you will get an exception with this warning:
*"Cannot select distinct identifiers from query with LIMIT and ORDER BY on a column from a fetch joined to-many association. Use output walkers."*

0 comments on commit f5b5cb2

Please sign in to comment.