Closed
Description
Hello,
I've come across a discrepancy in the SQL produced by Doctrine for ManyToOne annotations. As stated in the official documentation, the JoinColumn
should infer the nullable
from the attribute type definition.
However, this is actually not the case.
I've created a minimal reproduction case in this repository.
As you can see in EntityC, I've defined one ManyToOne
with PHP7.4 typed attributes and the other without it.
In the dump of my SQL schema, you can see that the SQL statements for both fields are not the same, when they should normally be.
The statement for the relationship with EntityA, defined with a typed attribute, has a DEFAULT NULL
clause that should not happen.
How can I help going ahead in fixing this?
Metadata
Metadata
Assignees
Labels
No labels