8000 Mapping discrepancy for ManyToOne with new inference · Issue #8805 · doctrine/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Mapping discrepancy for ManyToOne with new inference #8805
Closed
@TristanPouliquen

Description

@TristanPouliquen

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

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

      0