Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteafe755

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: Minor tweak [Validator] UniqueEntity - add note about comparing files.
2 parentsfe02c37 +de555d7 commiteafe755

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎reference/constraints/UniqueEntity.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,4 +397,10 @@ blank, ``findBy()`` will be used. The method receives as its argument a
397397
fields configured in the ``fields`` option). The method should return a
398398
:phpfunction:`countable PHP variable <is_countable>`.
399399

400+
..tip::
401+
402+
For ``binary`` and ``blob`` fields, instead of comparing large files directly,
403+
consider storing and comparing a hash (e.g. ``hash('xxh128', $contents)``)
404+
of the contents in your custom ``repositoryMethod``.
405+
400406
.. _`race conditions`:https://en.wikipedia.org/wiki/Race_condition

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp