diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index 892685fc90e..324dd53d6bc 100644 --- a/reference/constraints/Callback.rst +++ b/reference/constraints/Callback.rst @@ -182,7 +182,9 @@ process. Each method can be one of the following formats: public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addConstraint(new Callback(array( - 'methods' => array('isAuthorValid'), + 'methods' => array( + array('Acme\BlogBundle\MyStaticValidatorClass', 'isAuthorValid'), + ), ))); } }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: