-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[DoctrineBridge] Document the new entityClass
option
#7057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DoctrineBridge] Document the new entityClass
option
#7057
Conversation
|
||
**type**: ``string`` **default**: ``null`` | ||
|
||
The fully-qualified class name (FQCN) of the entity to get the repository used for making the query to determine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this sentence very much. Any hint on how to rephrase it better ? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
The fully-qualified class name (FQCN) of the entity for which to get the repository used to determine the uniqueness
? Or just keep it as is for consistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a proposal that says exactly the same but in a different order:
By default, the query performed to ensure the uniqueness uses the repository of
the current class instance. However, in some cases, such as when using Doctrine
inheritance mapping, you need to execute the query in a different repository.
Use this option to define the fully-qualified class name (FQCN) of the Doctrine
entity associated with the repository you want to use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@javiereguiluz : Perfect ! I'll update this PR in the minute. Thank you 🎉
fc063f2
to
8e4e47a
Compare
…ed by the UniqueEntity validator (ogizanagi) This PR was merged into the 3.2-dev branch. Discussion ---------- [DoctrineBridge] Add a way to select the repository used by the UniqueEntity validator | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #12573, #4087, #12977 | License | MIT | Doc PR | symfony/symfony-docs#7057 This is a cherry pick of #12977 on ~~2.8~~ 3.2 branch, as it is clearly a new feature, even if it was primary introduced in order to fix an inappropriate behavior that might be considered as a bug. Commits ------- 00d5459 [Doctrine] [Bridge] Add a way to select the repository used by the UniqueEntity validator
…ed by the UniqueEntity validator (ogizanagi) This PR was merged into the 3.2-dev branch. Discussion ---------- [DoctrineBridge] Add a way to select the repository used by the UniqueEntity validator | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #12573, #4087, #12977 | License | MIT | Doc PR | symfony/symfony-docs#7057 This is a cherry pick of #12977 on ~~2.8~~ 3.2 branch, as it is clearly a new feature, even if it was primary introduced in order to fix an inappropriate behavior that might be considered as a bug. Commits ------- 00d5459 [Doctrine] [Bridge] Add a way to select the repository used by the UniqueEntity validator
8e4e47a
to
a9c2fc2
Compare
PR updated according to @javiereguiluz 's suggestion. The PR on the code repository has been merged too. |
entityClass
optionentityClass
option
👍 |
👍 |
…(ogizanagi) This PR was merged into the master branch. Discussion ---------- [DoctrineBridge] Document the new `entityClass` option Waiting for symfony/symfony#15002 to be merged. Commits ------- a9c2fc2 [DoctrineBridge] Document the new `entityClass` option
Thanks @ogizanagi! Prefect PR! I've moved the versionadded directives directly after the title, as this is consistent with the versionadded directives in form types options. |
Waiting for symfony/symfony#15002 to be merged.