You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When loading nested collections using the LoadStrategy.JOINED it only orders by the first collection. For instance:
Project has Collection
Radio has Collection
both radio and option have a property order. When using LoadStrategy.JOINED it creates one query to load all entities and it only orders by the order of Radio. When using LoadStrategy.SELECT_IN it creates multiple queries and it orders by the order of Radio and the order of Option.
To Reproduce
Steps to reproduce the behavior:
Checkout PR xxx
yarn test GHxxxx
Expected behavior
Should sort on both orders.
Versions
Dependency
Version
node
?
typescript
?
mikro-orm
?
your-driver
?
The text was updated successfully, but these errors were encountered:
Describe the bug
When loading nested collections using the LoadStrategy.JOINED it only orders by the first collection. For instance:
Project has Collection
Radio has Collection
both radio and option have a property order. When using LoadStrategy.JOINED it creates one query to load all entities and it only orders by the order of Radio. When using LoadStrategy.SELECT_IN it creates multiple queries and it orders by the order of Radio and the order of Option.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should sort on both orders.
Versions
The text was updated successfully, but these errors were encountered: