8000 [DoctrineBridge] Document the new `entityClass` option by ogizanagi · Pull Request #7057 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[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

Merged
merged 1 commit into from
Nov 10, 2016

Conversation

ogizanagi
Copy link
Contributor

Waiting for symfony/symfony#15002 to be merged.


**type**: ``string`` **default**: ``null``

The fully-qualified class name (FQCN) of the entity to get the repository used for making the query to determine
Copy link
Contributor Author

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 ? 😄

Copy link
Member

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

Copy link
Member

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.
8000

Copy link
Contributor Author

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 🎉

@ogizanagi ogizanagi force-pushed the 3.2/feature/select_repo_option branch from fc063f2 to 8e4e47a Compare October 13, 2016 17:06
@xabbuh xabbuh added the On hold label Oct 13, 2016
fabpot added a commit to symfony/symfony that referenced this pull request Oct 14, 2016
…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
symfony-splitter pushed a commit to symfony/doctrine-bridge that referenced this pull request Oct 14, 2016
…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
@ogizanagi ogizanagi force-pushed the 3.2/feature/select_repo_option branch from 8e4e47a to a9c2fc2 Compare October 14, 2016 07:15
@ogizanagi
Copy link
Contributor Author

PR updated according to @javiereguiluz 's suggestion. The PR on the code repository has been merged too.

@ogizanagi ogizanagi changed the title [WCM][DoctrineBridge] Document the new entityClass option [DoctrineBridge] Document the new entityClass option Oct 14, 2016
@xabbuh xabbuh added this to the 3.2 milestone Oct 14, 2016
@xabbuh xabbuh removed the On hold label Oct 14, 2016
@wouterj
Copy link
Member
wouterj commented Nov 8, 2016

👍
status: reviewed

@javiereguiluz
Copy link
Member

👍

@wouterj wouterj merged commit a9c2fc2 into symfony:master Nov 10, 2016
wouterj added a commit that referenced this pull request Nov 10, 2016
…(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
wouterj added a commit that referenced this pull request Nov 10, 2016
@wouterj
Copy link
Member
wouterj commented Nov 10, 2016

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.

@ogizanagi ogizanagi deleted the 3.2/feature/select_repo_option branch November 10, 2016 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0