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

[Bridge] [Doctrine] [Validator] Added support \IteratorAggregate for UniqueEntityValidator#17078

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@Disparity
Copy link
Contributor

QA
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

Expand the list of supported types of results returned from the repositories.
Added processing of type \IteratorAggregate (and as a consequence doctrine Collection)

@DisparityDisparity changed the title[Bridge / Doctrine / Validator] Added support \IteratorAggregate for UniqueEntityValidator[Bridge] [Doctrine] [Validator] Added support \IteratorAggregate for UniqueEntityValidatorDec 20, 2015
@nicolas-grekas
Copy link
Member

Can you please add a test case?

@DisparityDisparityforce-pushed thefeature-bridge-doctrine-unique-validator-support-collection branch 3 times, most recently frome0847b0 to93d00beCompareDecember 27, 2015 07:06
@Disparity
Copy link
ContributorAuthor

@nicolas-grekas, I added tests to check the functionality different types of "Collections".

@nicolas-grekas
Copy link
Member

👍

@xabbuh
Copy link
Member

Is this supposed to be a bugfix or a new feature?

@Disparity
Copy link
ContributorAuthor

@xabbuh, these changes are closer to a new feature than to bug fixes.
This allows the validator working with traversable results (which include doctrine collection), and not only with iterators and arrays.

Copy link
Member

Choose a reason for hiding this comment

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

Imo for better readability the data provider should be near (above or below) the test method.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I looked existing code - not so simple, there are different tests in different approaches. But I agree that the data provider close to the test easier to read. Fixed.

Expand the list of supported types of results returned from the repositories.Added processing of type \IteratorAggregate (and as a consequence doctrine Collection)
@DisparityDisparityforce-pushed thefeature-bridge-doctrine-unique-validator-support-collection branch from93d00be todb49aaeCompareJanuary 10, 2016 07:25
@fabpot
Copy link
Member

👍 I would consider this a bugfix rather than a new feature.

@xabbuh
Copy link
Member

👍 for merging this into Symfony 2.3

@fabpot
Copy link
Member

Thank you@Disparity.

fabpot added a commit that referenced this pull requestJan 11, 2016
…regate for UniqueEntityValidator (Disparity)This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes#17078).Discussion----------[Bridge] [Doctrine] [Validator] Added support \IteratorAggregate for UniqueEntityValidator| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Expand the list of supported types of results returned from the repositories.Added processing of type \IteratorAggregate (and as a consequence doctrine Collection)Commits-------6ebd179 Added support \IteratorAggregate for UniqueEntityValidator
@fabpotfabpot closed thisJan 11, 2016
This was referencedJan 14, 2016
@fabpotfabpot mentioned this pull requestFeb 3, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@Disparity@nicolas-grekas@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp