diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index 93539cb7eb2..030cfe73c3c 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'), + ), ))); } }