File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -318,15 +318,18 @@ object.
318
318
.. code-block :: xml
319
319
320
320
<!-- Acme/TaskBundle/Resources/config/validation.xml -->
321
- <class name =" Acme\TaskBundle\Entity\Task" >
322
- <property name =" task" >
323
- <constraint name =" NotBlank" />
324
- </property >
325
- <property name =" dueDate" >
326
- <constraint name =" NotBlank" />
327
- <constraint name =" Type" >\DateTime</constraint >
328
- </property >
329
- </class >
321
+ <?xml version =" 1.0" charset =" UTF-8" ?>
322
+ <constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd" >
323
+ <class name =" Acme\TaskBundle\Entity\Task" >
324
+ <property name =" task" >
325
+ <constraint name =" NotBlank" />
326
+ </property >
327
+ <property name =" dueDate" >
328
+ <constraint name =" NotBlank" />
329
+ <constraint name =" Type" >\DateTime</constraint >
330
+ </property >
331
+ </class >
332
+ <constraint-mapping >
330
333
331
334
.. code-block :: php
332
335
You can’t perform that action at this time.
0 commit comments