Skip to content

Conversation

vjnrv
Copy link
Contributor

@vjnrv vjnrv commented Jun 20, 2013

Q A
Doc fix? yes
New docs? no
Applies to 2.1+
Fixed tickets -

@bamarni
Copy link
Contributor

bamarni commented Jun 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
Copy link
Contributor Author

vjnrv commented Jun 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.

See http://symfony.com/doc/current/reference/constraints/Callback.html#methods.

@xabbuh
Copy link
Member

xabbuh commented Jun 22, 2013

Looks good but you should base this on the 2.2 branch.

@vjnrv
Copy link
Contributor Author

vjnrv commented Jun 22, 2013

Alright, here is: #2759.

@vjnrv vjnrv closed this Jun 22, 2013
@vjnrv vjnrv deleted the patch-1 branch June 22, 2013 18:41
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