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

2.17 broke enum validations #11064

Closed
simPod opened this issue Nov 16, 2023 · 1 comment
Closed

2.17 broke enum validations #11064

simPod opened this issue Nov 16, 2023 · 1 comment

Comments

@simPod
Copy link
Contributor

simPod commented Nov 16, 2023

Bug Report

Q A
BC Break yes
Version 2.17.0

Summary

Running doctrine:schema:validate --skip-sync

I suspect #10946

Current behavior

The field 'My\Ns\Entity\Foo#bar' has the property type 'My\Ns\Value\SomeStringBackedEnum' that differs from the metadata field type 'string' returned by the 'string' DBAL type.

How to reproduce

class Foo
    #[ORM\Column(type: Types::STRING, enumType: SomeStringBackedEnum::class)]
    private SomeStringBackedEnum $bar
}

Expected behavior

No errors

@greg0ire
Copy link
Member

Duplicate of #11037

@greg0ire greg0ire marked this as a duplicate of #11037 Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants