Cannot read properties of undefined (reading '__data')
on entity creation with one-to-one relation
#4254
Labels
bug
Something isn't working
Describe the bug
Creating and persisting entities with OneToOne relation on Entity that uses owning Entity primary key as their primary.
Worked with 5.5.0 version, fails with 5.6.16
Stack trace
To Reproduce
Steps to reproduce the behavior:
Reproduction example: https://github.com/denis-maiorov-brightsec/mikro-orm-4254
Expected behavior
Both entities are persisted
Additional context
Runtime error shown in stack trace section
Versions
The text was updated successfully, but these errors were encountered: