Skip to content

[DoctrineBridge] Fix UniqueEntityValidator for fields (simple_array, json, ONE_TO_MANY ,MANY_TO_MANY) #61129

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

Open
wants to merge 1 commit into
base: 7.4
Choose a base branch
from

Conversation

wkania
Copy link
Contributor

@wkania wkania commented Jul 15, 2025

Q A
Branch? 7.4
Bug fix? yes
New feature? no
Deprecations? no
Issues
License MIT

Currently, the validator does not work with fields of type simple_array, json, or with associations like ONE_TO_MANY and MANY_TO_MANY.
In such cases, a custom repository method must be defined - the default findBy method cannot handle these field types.

This PR adds an explicit error when no such method is provided.

Is this a deprecation? Not really - it's unlikely anyone was using this with unsupported fields, and if they were, it wasn’t working anyway.

@wkania wkania force-pushed the unique-entity-all-types branch from 93b2d73 to 761df8d Compare July 15, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants