Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DoctrineBridge] issues with UniqueEntityValidator on 7.1-RC1 #57075

Closed
@dmaicher

Description

@dmaicher

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.

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