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

[DoctrineBridge] fixed default parameter value in UniqueEntityValidator#19227

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

@HeahDude
Copy link
Contributor

QA
Branch?3.1
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#19209
LicenseMIT
Doc PR~

@HeahDude
Copy link
ContributorAuthor

Confirmed by@nicolas-grekas that the remaining failure inValidator's suite forappveyor is unrelated.

@HeahDude
Copy link
ContributorAuthor

@nicolas-grekas Is that normal that tests pass in high depth in travis? Shouldn't the validator dependency in the doctrine bridge be updated?

@HeahDude
Copy link
ContributorAuthor

Ok I got it, tests are not running on 3.1, so maybe we should add a conflict?

$invalidValue =isset($criteria[$errorPath]) ?$criteria[$errorPath] :$criteria[$fields[0]];

if (is_object($invalidValue) && !method_exists($invalidValue,'__toString')) {
$invalidValue =sprintf('Object of class "%s" identified by "%s"',get_class($entity),implode(',',$class->getIdentifierValues($entity)));
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Why not use this in the default message by including the placeholder?

@fabpot
Copy link
Member

Thank you@HeahDude.

@fabpotfabpot merged commit40c0c52 intosymfony:3.1Jun 30, 2016
fabpot added a commit that referenced this pull requestJun 30, 2016
…tityValidator (HeahDude)This PR was merged into the 3.1 branch.Discussion----------[DoctrineBridge] fixed default parameter value in UniqueEntityValidator| Q             | A| ------------- | ---| Branch?       | 3.1| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#19209| License       | MIT| Doc PR        | ~Commits-------40c0c52 [DoctrineBridge] fixed default parameter value in UniqueEntityValidator
@HeahDudeHeahDude deleted the fix/unique_entity-constraint-message_value branchJune 30, 2016 08:13
@HeahDude
Copy link
ContributorAuthor

Tests may fail after#19240, do they?

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.

3 participants

@HeahDude@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp