Skip to content

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.

@wkania wkania requested a review from xabbuh as a code owner August 1, 2025 16:12
@carsonbot carsonbot added this to the 6.4 milestone Aug 1, 2025
@wkania wkania closed this Oct 7, 2025
javiereguiluz added a commit that referenced this pull request Oct 8, 2025
…ed types and association mappings. (wkania)

This PR was merged into the 6.4 branch.

Discussion
----------

[Validator] UniqueEntity - add warning about not supported types and 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. 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.

The previous [PR](#21262) closed itself due to an incorrect empty rebase, sorry.

Commits
-------

31ec2a0 [Validator] UniqueEntity - add warning about not supported types and association mappings.
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