Describe the bug
75a6487
@ManyToOne({ onDelete: 'cascade', onUpdateIntegrity: 'cascade' })
parent!: IdentifiedReference<TreeNodeEntity> | null
prop.nullable is false even if there is no user defined default
which leads to:
ValidationError: Value for TreeNodeEntity.parent is required, 'null' found
Versions
| Dependency |
Version |
| mikro-orm |
5.4.0 |