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
I'm not sure if this is something that is intended to work, so feel free to close this issue if this is out of scope or not intended to work.
I have defined a Virtual entity with an expression and this is working fine if i query it through the entity manager. But if i create a query builder for this entity, it just treats the entity as a DB table and tries to select that (non-exsisten) table, ignoring the expression.
My current use case is, that i have an existing FilterQuery (which is dynamically generated) for a Virtual Entity. I know need to use this FilterQuery inside of the knex query builder for an complex aggregation query.
Describe the bug
I'm not sure if this is something that is intended to work, so feel free to close this issue if this is out of scope or not intended to work.
I have defined a Virtual entity with an expression and this is working fine if i query it through the entity manager. But if i create a query builder for this entity, it just treats the entity as a DB table and tries to select that (non-exsisten) table, ignoring the expression.
My current use case is, that i have an existing FilterQuery (which is dynamically generated) for a Virtual Entity. I know need to use this FilterQuery inside of the knex query builder for an complex aggregation query.
Reproduction
https://github.com/co-sic/node-mikro-orm-playground
What driver are you using?
@mikro-orm/postgresql
MikroORM version
6.0.0-rc.3
Node.js version
20.9.0
Operating system
No response
Validations
The text was updated successfully, but these errors were encountered: