Skip to content

Commit 7679617

Browse files
committed
Update reference/constraints/UniqueEntity.rst
1 parent fa32729 commit 7679617

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,12 @@ used.
117117
repositoryMethod
118118
~~~~~~~~~~~~~~~~
119119

120-
**type**: ``string``
120+
**type**: ``string`` **default**: ``findBy``
121121

122122
.. versionadded:: 2.1
123+
The ``repositoryMethod`` option was added in Symfony 2.1. Before, it was always using findBy.
124+
125+
126+
123127
The name of the repository method to use for making the query to determine the
124128
uniqueness. If it's left blank, the findBy method will be used. This method should return a countable result.

0 commit comments

Comments
 (0)