Skip to content

[v6]: id field on embeddables #4960

@roderik

Description

@roderik

Describe the bug

a field named id in an embeddable is replaced by _id on fetch fromt he db.

See thread on slack https://mikroorm.slack.com/archives/CFSAF8DEX/p1700485119660259

Reproduction

mikro-orm/reproduction#2

What driver are you using?

@mikro-orm/mongodb

MikroORM version

6 rc1

Node.js version

20

Operating system

osx

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions