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

Commit69aba45

Browse files
committed
minor#11029 Expanding on repositoryMethod (ThomasLandauer)
This PR was squashed before being merged into the 3.4 branch (closes#11029).Discussion----------Expanding on repositoryMethodCommits-------25d7a4a Expanding on repositoryMethod
2 parentse9c58ec +25d7a4a commit69aba45

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

‎reference/constraints/UniqueEntity.rst‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,14 @@ not need to be used.
170170
repositoryMethod
171171
~~~~~~~~~~~~~~~~
172172

173-
**type**: ``string`` **default**: ``findBy()``
174-
175-
The name of the repository method to use for making the query to determine
176-
the uniqueness. If it's left blank, the ``findBy()`` method will be used.
177-
This method should return a countable result.
173+
**type**: ``string`` **default**: ``findBy``
174+
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.
178181

179182
entityClass
180183
~~~~~~~~~~~

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp