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

Appearance settings

Commit 8f3e142

Browse filesBrowse files
committed
Minor reword
1 parent 69aba45 commit 8f3e142
Copy full SHA for 8f3e142

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎reference/constraints/UniqueEntity.rst

Copy file name to clipboardExpand all lines: reference/constraints/UniqueEntity.rst
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,11 @@ repositoryMethod
172172

173173
**type**: ``string`` **default**: ``findBy``
174174

175-
The name of a custom repository method to determine the uniqueness.
176-
If it's left blank, ``findBy`` will be used. The method gets passed
177-
an indexed array with elements in the form ``fieldName => value``
178-
(where ``fieldName`` is the content of the ``fields`` option).
179-
The method should return a
180-
[countable](http://php.net/manual/function.is-countable.php) result.
175+
The name of the repository method used to determine the uniqueness. If it's left
176+
blank, ``findBy()`` will be used. The method receives as its argument a
177+
``fieldName => value`` associative array (where ``fieldName`` is each of the
178+
fields configured in the ``fields`` option). The method should return a
179+
`countable PHP variable`_.
181180

182181
entityClass
183182
~~~~~~~~~~~
@@ -305,3 +304,4 @@ also has a ``null`` value, validation would fail.
305304
.. include:: /reference/constraints/_payload-option.rst.inc
306305

307306
.. _`race conditions`: https://en.wikipedia.org/wiki/Race_condition
307+
.. _`countable PHP variable`: https://php.net/manual/function.is-countable.php

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.