File tree 1 file changed +3
-10
lines changed 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ will contain a Business Identifier Code (BIC).
48
48
AppBundle\Entity\Transaction :
49
49
properties :
50
50
businessIdentifierCode :
51
- - Bic :
52
- message : This is not a valid Business Identifier Code (BIC).
51
+ - Bic : ~
53
52
54
53
.. code-block :: xml
55
54
@@ -61,11 +60,7 @@ will contain a Business Identifier Code (BIC).
61
60
62
61
<class name =" AppBundle\Entity\Transaction" >
63
62
<property name =" businessIdentifierCode" >
64
- <constraint name =" Bic" >
65
- <option name =" message" >
66
- This is not a valid Business Identifier Code (BIC).
67
- </option >
68
- </constraint >
63
+ <constraint name =" Bic" />
69
64
</property >
70
65
</class >
71
66
</constraint-mapping >
@@ -84,9 +79,7 @@ will contain a Business Identifier Code (BIC).
84
79
85
80
public static function loadValidatorMetadata(ClassMetadata $metadata)
86
81
{
87
- $metadata->addPropertyConstraint('businessIdentifierCode', new Assert\Bic(array(
88
- 'message' => 'This is not a valid Business Identifier Code (BIC).',
89
- )));
82
+ $metadata->addPropertyConstraint('businessIdentifierCode', new Assert\Bic());
90
83
}
91
84
}
92
85
You can’t perform that action at this time.
0 commit comments