Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Reference][Constraints] Added missing class to static callback example in PHP#2747
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
bamarni commentedJun 20, 2013
The current code is correct, it's invoking a method from the object being validated, what you're doing here is different. Edit : nevermind, I tought it was from the first example :) |
vjnrv commentedJun 20, 2013
I know that the current code is right, but this section of the doc explains how to validate with static method, all the other examples (YAML, XML and Annotation) are right, but php no. Seehttp://symfony.com/doc/current/reference/constraints/Callback.html#methods. |
xabbuh commentedJun 22, 2013
Looks good but you should base this on the 2.2 branch. |
vjnrv commentedJun 22, 2013
Alright, here is:#2759. |