Closed
Description
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