Skip to content

Using _id as Primary Key and id as a property results mixed data #1444

@thomaschaaf

Description

@thomaschaaf

Describe the bug
Defining an primary key _id and a property id results in data being mixed.

To Reproduce
See https://github.com/mikro-orm/mikro-orm/pull/1445/files and
https://github.com/mikro-orm/mikro-orm/pull/1445/checks?check_run_id=1906408508#step:15:180

Expected behavior
Data from _id and id should not be mixed. _id should be of type number and auto increment, id should be a string (uuid).

Versions

Dependency Version
mikro-orm 4.4.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions