Skip to content

[Validator] UniqueEntity - add warning about not supported types and association mappings. #21262

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 3 commits into
base: 6.4
Choose a base branch
from

Conversation

wkania
Copy link
Contributor

@wkania wkania commented Aug 1, 2025

This constraint does not support Doctrine types such as simple_array, json, or jsonb, nor does it handle association mappings like One-To-Many and Many-To-Many relationships. It may also not work correctly with custom Doctrine types. To perform uniqueness checks on such fields, you must define a custom repositoryMethod that implements the desired logic.

…association mappings.

This constraint does not support Doctrine types such as simple_array, json, or jsonb, nor does it handle association mappings like One-To-Many and Many-To-Many relationships. To perform uniqueness checks on such fields, you must define a custom repositoryMethod that implements the desired logic.
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