Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions reference/constraints/UniqueEntity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ between all of the rows in your user table:
that haven't been persisted as entities yet. You'll need to create your own
validator to handle that case.

.. warning::

This constraint does not support Doctrine types such as
``simple_array``, ``json``, or ``jsonb``, nor does it handle association mappings
like ``OneToMany`` and ``ManyToMany`` 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.

Options
-------

Expand Down