@@ -57,7 +57,7 @@ You can validate each of these constraints sequentially to solve these issues:
57
57
* @var string
58
58
*
59
59
* @Assert\Sequentially({
60
- * @Assert\NotBlank (),
60
+ * @Assert\NotNull (),
61
61
* @Assert\Type("string"),
62
62
* @Assert\Length(min=10),
63
63
* @Assert\Regex(Place::ADDRESS_REGEX),
@@ -74,7 +74,7 @@ You can validate each of these constraints sequentially to solve these issues:
74
74
properties :
75
75
address :
76
76
- Sequentially :
77
- - NotBlank : ~
77
+ - NotNull : ~
78
78
- Type : string
79
79
- Length : { min: 10 }
80
80
- Regex : !php/const App\Localization\Place::ADDRESS_REGEX
@@ -91,7 +91,7 @@ You can validate each of these constraints sequentially to solve these issues:
91
91
<class name =" App\Localization\Place" >
92
92
<property name =" address" >
93
93
<constraint name =" Sequentially" >
94
- <constraint name =" NotBlank " />
94
+ <constraint name =" NotNull " />
95
95
<constraint name =" Type" >string</constraint >
96
96
<constraint name =" Length" >
97
97
<option name =" min" >10</option >
@@ -119,7 +119,7 @@ You can validate each of these constraints sequentially to solve these issues:
119
119
public static function loadValidatorMetadata(ClassMetadata $metadata)
120
120
{
121
121
$metadata->addPropertyConstraint('address', new Assert\Sequentially([
122
- new Assert\NotBlank (),
122
+ new Assert\NotNull (),
123
123
new Assert\Type("string"),
124
124
new Assert\Length(['min' => 10]),
125
125
new Assert\Regex(self::ADDRESS_REGEX),
0 commit comments