-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API] sorting product by position in taxon #12621
[API] sorting product by position in taxon #12621
Conversation
AdamKasp
commented
May 10, 2021
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
License | MIT |
|
||
$rootAlias = $queryBuilder->getRootAliases()[0]; | ||
$queryBuilder | ||
->distinct() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have you decided for distinct here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I added innerJoin to products taxons collection, and I want to avoid any duplication of record in response.
1023d2d
to
957ebb7
Compare
...undle/ApiBundle/spec/Doctrine/QueryCollectionExtension/SortProductsByPositionInTaxonSpec.php
Outdated
Show resolved
Hide resolved
957ebb7
to
8ef2574
Compare
c27bb21
to
45a61db
Compare
Thank you, Adam! 🥇 |