8000 OneToOne mappings broken after upgrading to symfony/doctrine-bridge 7.0.4 · Issue #54077 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
OneToOne mappings broken after upgrading to symfony/doctrine-bridge 7.0.4 #54077
Closed
@weberdominik

Description

@weberdominik

Symfony version(s) affected

7.0.4

Description

After upgrading to symfony/doctrine-bridge 7.0.4 I am receiving warnings for all my OneToOne mappings:

Warning: Undefined property: Doctrine\ORM\Mapping\OneToOneInverseSideMapping::$joinColumns

How to reproduce

This warning occures for every OneToOne mapping in my project, even for most basic configurations. For example:

#[ORM\OneToOne(targetEntity: Order::class)]

Possible Solution

Downgrading back to symfony/doctrine-bridge 7.0.3 fixed my issue.

Additional Context

The warning is thrown in vendor/symfony/doctrine-bridge/PropertyInfo/DoctrineExtractor.php:282

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0