Skip to content

Commit fc1580d

Browse files
committed
[#2145] Minor tweaks for UniqueEntity repositoryMethod option
1 parent 7133238 commit fc1580d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,15 @@ uniqueness. If it's left blank, the correct entity manager will determined for
113113
this class. For that reason, this option should probably not need to be
114114
used.
115115

116-
117116
repositoryMethod
118117
~~~~~~~~~~~~~~~~
119118

120119
**type**: ``string`` **default**: ``findBy``
121120

122121
.. versionadded:: 2.1
123-
The ``repositoryMethod`` option was added in Symfony 2.1. Before, it was always using findBy.
124-
125-
122+
The ``repositoryMethod`` option was added in Symfony 2.1. Before, it
123+
always used the ``findBy`` method.
126124

127125
The name of the repository method to use for making the query to determine the
128-
uniqueness. If it's left blank, the findBy method will be used. This method should return a countable result.
126+
uniqueness. If it's left blank, the ``findBy`` method will be used. This
127+
method should return a countable result.

0 commit comments

Comments
 (0)