Skip to content

[DoctrineBridge] Changed UniqueEntityValidator to use the 2.5 Validation API #11582

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
Aug 7, 2014

Conversation

webmozart
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #11578
License MIT
Doc PR -

@@ -79,6 +80,9 @@ public function getInstance(Constraint $constraint)
case self::FORM_BASE_NAMESPACE.'\\Form':
$name = self::FORM_BASE_NAMESPACE.'\\LegacyFormValidator';
break;
case self::DOCTRINE_BASE_NAMESPACE.'\\UniqueEntity':
$name = self::DOCTRINE_BASE_NAMESPACE.'\\LegacyUniqueEntityValidator';
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work, because the valdiator is registered as a service (it has some dependencies)

@webmozart
Copy link
Contributor Author

@stof That's indeed much better. I'll remove the duplicated legacy classes everywhere.

@webmozart
Copy link
Contributor Author

See #11587


/**
* @since 2.5.4
* @author Bernhard Schussek <bschussek@gmail.com>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we generally don't use @author on tests (and @since are not really needed for tests either IMO)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are quite some tests that have the @author keyword. It's in my file template and I don't think there's any benefit in removing it.

@stof
Copy link
Member

stof commented Aug 6, 2014

👍

1 similar comment
@Tobion
Copy link
Contributor

Tobion commented Aug 6, 2014

👍

@webmozart webmozart merged commit f45f1ab into symfony:2.5 Aug 7, 2014
webmozart added a commit that referenced this pull request Aug 7, 2014
…2.5 Validation API (webmozart)

This PR was merged into the 2.5 branch.

Discussion
----------

[DoctrineBridge] Changed UniqueEntityValidator to use the 2.5 Validation API

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #11578
| License       | MIT
| Doc PR        | -

Commits
-------

f45f1ab [DoctrineBridge] Changed UniqueEntityValidator to use the 2.5 Validation API
@webmozart webmozart deleted the issue11578 branch August 15, 2014 09:43
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