Skip to content

[Doctrine] [Bridge] Add a "repositoryMethod" option to the uniqueEntity validator #4979

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 3 commits into from
Jul 20, 2012
Merged

[Doctrine] [Bridge] Add a "repositoryMethod" option to the uniqueEntity validator #4979

merged 3 commits into from
Jul 20, 2012

Conversation

docteurklein
Copy link
Contributor

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: ~
Todo: ~
License of the code: MIT
Documentation PR: ~

This allows to configure the repository method used to verify uniqueness of entity.
Before, it was always using findBy.

@fabpot
Copy link
Member

fabpot commented Jul 20, 2012

Can you add a note in the CHANGELOG?

@docteurklein
Copy link
Contributor Author

@fabpot done.

fabpot added a commit that referenced this pull request Jul 20, 2012
…tory-method (PR #4979)

Commits
-------

4eb54a0 update CHANGELOG
db9ea09 [Doctrine] [Bridge] fix repositoryMethod test
2a6c222 Add a customRepository option to the uniqueEntity validator

Discussion
----------

[Doctrine] [Bridge] Add a "repositoryMethod" option to the uniqueEntity validator

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: ~
Todo: ~
License of the code: MIT
Documentation PR: ~

This allows to configure the repository method used to verify uniqueness of entity.
Before, it was always using `findBy`.

---------------------------------------------------------------------------

by fabpot at 2012-07-20T05:35:28Z

Can you add a note in the CHANGELOG?

---------------------------------------------------------------------------

by docteurklein at 2012-07-20T07:17:08Z

@fabpot done.
@fabpot fabpot merged commit 4eb54a0 into symfony:master Jul 20, 2012
@docteurklein docteurklein deleted the unique-entity-validator-with-custom-repository-method branch September 8, 2015 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants