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

Commit13acf3e

Browse files
committed
feature#7057 [DoctrineBridge] Document the newentityClass option (ogizanagi)
This PR was merged into the master branch.Discussion----------[DoctrineBridge] Document the new `entityClass` optionWaiting forsymfony/symfony#15002 to be merged.Commits-------a9c2fc2 [DoctrineBridge] Document the new `entityClass` option
2 parents67706f6 +a9c2fc2 commit13acf3e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎reference/constraints/UniqueEntity.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ using an email address that already exists in the system.
1212
|| - `message`_|
1313
|| - `em`_|
1414
|| - `repositoryMethod`_|
15+
|| - `entityClass`_|
1516
|| - `errorPath`_|
1617
|| - `ignoreNull`_|
1718
|| - `payload`_|
@@ -164,6 +165,20 @@ The name of the repository method to use for making the query to determine
164165
the uniqueness. If it's left blank, the ``findBy`` method will be used.
165166
This method should return a countable result.
166167

168+
entityClass
169+
~~~~~~~~~~~
170+
171+
**type**: ``string`` **default**: ``null``
172+
173+
..versionadded::3.2
174+
The ``entityClass`` option was introduced in Symfony 3.2.
175+
176+
By default, the query performed to ensure the uniqueness uses the repository of
177+
the current class instance. However, in some cases, such as when using Doctrine
178+
inheritance mapping, you need to execute the query in a different repository.
179+
Use this option to define the fully-qualified class name (FQCN) of the Doctrine
180+
entity associated with the repository you want to use.
181+
167182
errorPath
168183
~~~~~~~~~
169184

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp