Closed
Description
Symfony version(s) affected
7.1 RC1
Description
I just tested 7.1 RC1 on my biggest app and I noticed this error:
ReflectionException:
Property Proxies\__CG__\CA\Core\UserBundle\Entity\User::$email does not exist
at vendor/symfony/doctrine-bridge/Validator/Constraints/UniqueEntityValidator.php:298
How to reproduce
Unfortunately I cannot reproduce this issue yet on a smaller app like symfony-demo
. Still looking into it 😕
See #57075 (comment)
Possible Solution
use PropertyAccessor
to get the value here?
Additional Context
Downgrading DoctrineBridge and PropertyInfo to 7.0.7 solves the issue for me.