Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Form] Fixed FormValidator compatibility with the non-BC 2.5 Validation API #11571

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

Conversation

webmozart
Copy link
Contributor

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

@stof
Copy link
Member

stof commented Aug 5, 2014

👍

@fabpot
Copy link
Member

fabpot commented Aug 6, 2014

👍

@fabpot
Copy link
Member

fabpot commented Aug 6, 2014

Thank you @webmozart.

@fabpot fabpot merged commit 6ac130e into symfony:2.5 Aug 6, 2014
fabpot added a commit that referenced this pull request Aug 6, 2014
….5 Validation API (webmozart)

This PR was merged into the 2.5 branch.

Discussion
----------

[Form] Fixed FormValidator compatibility with the non-BC 2.5 Validation API

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

Commits
-------

6ac130e [Form] Fixed FormValidator compatibility with the non-BC 2.5 Validation API
@sivolobov
Copy link

This PR broke my application. But I don't know why... On my local machine (OS X 10.10, php 5.5.14) I have no problems. But on my production (CentOS, php 5.3.3) it fails while submitting form on line #56 of FormValidator.php

EMERGENCY - Call to undefined method Symfony\Component\Validator\ExecutionContext::getValidator()
CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call method "getValidator" on class "Symfony\Component\Validator\ExecutionContext" in /var/www/mnogoplatim.ru/data/www/mnogoplatim.ru/www/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php line 56." at /var/www/mnogoplatim.ru/data/www/mnogoplatim.ru/www/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php line 56

@xabbuh
Copy link
Member

xabbuh commented Aug 8, 2014

@sivolobov see #11580 (for the report) and #11587 (for the fix)

@webmozart webmozart deleted the issue11568 branch August 15, 2014 09:43
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.

5 participants