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
Wrapping a find query with the $and operator causes it to query the wrong table+column
Stack trace
InvalidFieldNameException: select `e0`.*, `e1`.`id` as `user_id` from `profile` as `e0` left join `user` as `e1` on `e0`.`id` = `e1`.`profile_id` where `e0`.`user_id` in (123) - SQLITE_ERROR: no such column: e0.user_id
at SqliteExceptionConverter.convertException (C:\testcase\.yarn\$$virtual\@mikro-orm-sqlite-virtual-4d94b4ca8a\0\cache\@mikro-orm-sqlite-npm-4.0.3-6abbc1e0ec-39975ba0c2.zip\node_modules\@mikro-orm\sqlite\SqliteExceptionConverter.js:32:20)
at SqliteDriver.convertException (C:\testcase\.yarn\$$virtual\@mikro-orm-core-virtual-6c2ac32c4b\0\cache\@mikro-orm-core-npm-4.0.3-4ae154529f-9ed736faf4.zip\node_modules\@mikro-orm\core\drivers\DatabaseDriver.js:168:54)
at C:\testcase\.yarn\$$virtual\@mikro-orm-core-virtual-6c2ac32c4b\0\cache\@mikro-orm-core-npm-4.0.3-4ae154529f-9ed736faf4.zip\node_modules\@mikro-orm\core\drivers\DatabaseDriver.js:172:24
at SqliteDriver.find (C:\testcase\.yarn\$$virtual\@mikro-orm-knex-virtual-5180ec5ee4\0\cache\@mikro-orm-knex-npm-4.0.3-43ff3bffe1-ed619bd1a1.zip\node_modules\@mikro-orm\knex\AbstractSqlDriver.js:42:24)
at SqlEntityManager.find (C:\testcase\.yarn\$$virtual\@mikro-orm-core-virtual-6c2ac32c4b\0\cache\@mikro-orm-core-npm-4.0.3-4ae154529f-9ed736faf4.zip\node_modules\@mikro-orm\core\EntityManager.js:75:25)
at C:\testcase\index.ts:24:2
Describe the bug
Wrapping a find query with the
$and
operator causes it to query the wrong table+columnStack trace
To Reproduce
Expected behavior
Wrapping the query in
$and
should not cause it to failVersions
The text was updated successfully, but these errors were encountered: