Skip to content

Commit b29856d

Browse files
committed
Minor tweak
1 parent c267afa commit b29856d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,10 @@ blank, ``findBy()`` will be used. The method receives as its argument a
402402
fields configured in the ``fields`` option). The method should return a
403403
:phpfunction:`countable PHP variable <is_countable>`.
404404

405-
.. note::
405+
.. tip::
406406

407407
For ``binary`` and ``blob`` fields, instead of comparing large files directly,
408-
consider storing and comparing a hash (e.g., MD5) of the content in your
409-
custom ``repositoryMethod``.
408+
consider storing and comparing a hash (e.g. ``hash('xxh128', $contents)``)
409+
of the contents in your custom ``repositoryMethod``.
410410

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

0 commit comments

Comments
 (0)