mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Reduce amount of mapping boilerplate #6894
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @benblub on GitHub (Jan 7, 2022).
Bug Report
From https://www.doctrine-project.org/2021/05/24/orm2.9.html i tried reduce amount of mapping boilerplate. Remove type from attribute works for me but not nullable.
works
error
Output
works
How to reproduce
run some unit test with provided entity data above.
@derrabus commented on GitHub (Jan 8, 2022):
This is not a bug. Nullability is not inferred from the parameter types. You have to configure it explicitly.