TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.
Describe the bug
I have one to many relation. When I try to remove a child entity from parent's collection (removeOrphans set to true), it does nothing, since it improperly handles custom primary key type.
It runs the following query:
delete from child_entity where id in ('[object Object]')
Describe the bug I have one to many relation. When I try to remove a child entity from parent's collection (removeOrphans set to true), it does nothing, since it improperly handles custom primary key type.
It runs the following query:
delete from child_entity where id in ('[object Object]')
To Reproduce Here is a repository with a reproduction test https://github.com/lsndr/mikroom-delete-1toM-bug
Expected behavior Child entities must be removed
Versions