Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@dmaicher

Description

@dmaicher
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.