We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26cf7c7 + de71e77 commit 0849175Copy full SHA for 0849175
reference/constraints/Callback.rst
@@ -184,7 +184,9 @@ process. Each method can be one of the following formats:
184
public static function loadValidatorMetadata(ClassMetadata $metadata)
185
{
186
$metadata->addConstraint(new Callback(array(
187
- 'methods' => array('isAuthorValid'),
+ 'methods' => array(
188
+ array('Acme\BlogBundle\MyStaticValidatorClass', 'isAuthorValid'),
189
+ ),
190
)));
191
}
192
0 commit comments