Skip to content
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

Order by doesn’t work with embeddable fields inside populated entity if embedabble has object true #5560

Closed
5 tasks done
co-sic opened this issue May 12, 2024 · 0 comments
Closed
5 tasks done

Comments

@co-sic
Copy link
Contributor

co-sic commented May 12, 2024

Describe the bug

This is the same issue as this: #5389 but with object set to true for the embeddable field instead.

Error: InvalidFieldNameException: select "b0".* from "book" as "b0" left join "author" as "a1" on "b0"."author_id" = "a1"."id" order by "b0"."embeddable_age" asc - column b0.embeddable_age does not exist

If i remove the object: true in my example it works.

Reproduction

https://github.com/co-sic/node-mikro-orm-playground/tree/embeddable-sorting

What driver are you using?

@mikro-orm/postgresql

MikroORM version

6.2.5

Node.js version

20

Operating system

No response

Validations

@B4nan B4nan closed this as completed in cbd7c3e May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant