Skip to content

Commit 6f9be2c

Browse files
l3l0weaverryan
authored andcommitted
Change confusing part in ex. of class validator
Change confusing part in examples of class custom validator in YML and XML.
1 parent d979c37 commit 6f9be2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/validation/custom_constraint.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ not to the property:
238238
# src/Acme/BlogBundle/Resources/config/validation.yml
239239
Acme\DemoBundle\Entity\AcmeEntity:
240240
constraints:
241-
ContainsAlphanumeric: ~
241+
Acme\DemoBundle\Validator\Constraints\ContainsAlphanumeric: ~
242242
243243
.. code-block:: php-annotations
244244
@@ -254,5 +254,5 @@ not to the property:
254254
255255
<!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
256256
<class name="Acme\DemoBundle\Entity\AcmeEntity">
257-
<constraint name="ContainsAlphanumeric" />
257+
<constraint name="Acme\DemoBundle\Validator\Constraints\ContainsAlphanumeric" />
258258
</class>

0 commit comments

Comments
 (0)