Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DoctrineBridge] Embeddables are not read properly while introspecting validator's PropertyMetadata #31743

Closed
phansys opened this issue May 30, 2019 · 2 comments

Comments

@phansys
Copy link
Contributor

phansys commented May 30, 2019

Symfony version(s) affected: 4.3.0

Description
Doctrine's embeddables are not read properly while introspecting validator's PropertyMetadata:

                                                                                             
  [Symfony\Component\Validator\Exception\ValidatorException]                                 
  Property "embeded_class.some_property" does not exist in class "App\Entity\MyEntity"  
                                                                                             

How to reproduce

Update symfony/doctrine-bridge (v4.2.9 => v4.3.0)

@avramcosmin
Copy link

Having the same error here.

After updating Symfony to 4.3.0 JWTRefreshTokenBundle stopped working. I maintain an Entity class which is extending their AbstractRefreshToken class (just because I want a different table name for the refresh tokens).

@phansys
Copy link
Contributor Author

phansys commented May 30, 2019

As a workaround, you can update composer.json in order to conflict with this update:

"conflict": {
    "symfony/doctrine-bridge": ">4.2.9"
}

I'll try to check where the issue came from: https://github.com/symfony/doctrine-bridge/compare/v4.2.9..v4.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants