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
SQL error at populate ManyToMany relation using EntityRepository.find().
Stack trace
Error: (conn=52, no: 1054, SQLState: 42S22) Unknown column 'e0.$in'in'where clause'
sql: select`e0`.*, `e1`.`artist_id`, `e1`.`style_id`from`artist`as`e0`left join`style_to_artist`as`e1`on`e0`.`id`=`e1`.`artist_id`where`e0`.`$in`in (?, ?, ?, ?, ?) and`e1`.`style_id`in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) group by`e0`.`id`, `e1`.`artist_id`, `e1`.`style_id`- parameters:[1,2,3,4,5,1,1,2,2,3,3,4,4,5,5]
at Object.module.exports.createError (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/mariadb/lib/misc/errors.js:55:10)
at PacketNodeEncoded.readError (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/mariadb/lib/io/packet.js:510:19)
at Query.readResponsePacket (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/mariadb/lib/cmd/resultset.js:46:28)
at PacketInputStream.receivePacketBasic (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/mariadb/lib/io/packet-input-stream.js:104:9)
at PacketInputStream.onData (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/mariadb/lib/io/packet-input-stream.js:160:20)
at Socket.emit (events.js:210:5)
at Socket.EventEmitter.emit (domain.js:476:20)
at addChunk (_stream_readable.js:308:12)
at readableAddChunk (_stream_readable.js:289:11)
at Socket.Readable.push (_stream_readable.js:223:10)
at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
From previous event:
at Client_MySQL._query (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/knex/lib/dialects/mysql/index.js:124:12)
at Client_MySQL.query (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/knex/lib/client.js:158:17)
at Runner.query (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/knex/lib/runner.js:135:36)
at /home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/knex/lib/runner.js:39:23From previous event:
at Runner.run (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/knex/lib/runner.js:25:16)
at Builder.Target.then (/home/alejandro/Documentos/Proyectos/tattoo/server/node_modules/knex/lib/interface.js:14:43)
Additional context
I have an array of artists ids: [ 1, 2, 3, 4, 5 ] and I want all styles of these artists, using only a query and I need they on same order: [[styles of artist id: 1], [styles of artist id: 2], ...].
Versions
Dependency
Version
node
v12.13.0
typescript
3.6.3
mikro-orm
3.0.0-alpha.34
your-driver
mariadb
The text was updated successfully, but these errors were encountered:
Describe the bug
SQL error at populate ManyToMany relation using EntityRepository.find().
Stack trace
To Reproduce
Steps to reproduce the behavior:
entities/artistEntity.ts
entities/styleEntity.ts
stores/styleStore.ts
Expected behavior
No SQL error.
Additional context
I have an array of artists ids: [ 1, 2, 3, 4, 5 ] and I want all styles of these artists, using only a query and I need they on same order: [[styles of artist id: 1], [styles of artist id: 2], ...].
Versions
The text was updated successfully, but these errors were encountered: