Skip to content
Open
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
6 changes: 6 additions & 0 deletions reference/constraints/UniqueEntity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -402,4 +402,10 @@ blank, ``findBy()`` will be used. The method receives as its argument a
fields configured in the ``fields`` option). The method should return a
:phpfunction:`countable PHP variable <is_countable>`.

.. note::

For ``binary`` and ``blob`` fields, instead of comparing large files directly,
consider storing and comparing a hash (e.g., MD5) of the content in your
custom ``repositoryMethod``.

.. _`race conditions`: https://en.wikipedia.org/wiki/Race_condition