@@ -45,7 +45,8 @@ The following constraints ensure that:
4545 App\Entity\Person :
4646 properties :
4747 siblings :
48- - GreaterThanOrEqual : 5
48+ - GreaterThanOrEqual :
49+ value : 5
4950 age :
5051 - GreaterThanOrEqual :
5152 value : 18
@@ -61,7 +62,7 @@ The following constraints ensure that:
6162 <class name =" App\Entity\Person" >
6263 <property name =" siblings" >
6364 <constraint name =" GreaterThanOrEqual" >
64- 5
65+ < option name = " value " >5</ option >
6566 </constraint >
6667 </property >
6768 <property name =" age" >
@@ -122,7 +123,8 @@ that a date must at least be the current day:
122123 App\Entity\Order :
123124 properties :
124125 deliveryDate :
125- - GreaterThanOrEqual : today
126+ - GreaterThanOrEqual :
127+ value : today
126128
127129 .. code-block :: xml
128130
@@ -134,7 +136,9 @@ that a date must at least be the current day:
134136
135137 <class name =" App\Entity\Order" >
136138 <property name =" deliveryDate" >
137- <constraint name =" GreaterThanOrEqual" >today</constraint >
139+ <constraint name =" GreaterThanOrEqual" >
140+ <option name =" value" >today</option >
141+ </constraint >
138142 </property >
139143 </class >
140144 </constraint-mapping >
@@ -181,7 +185,8 @@ dates. If you want to fix the timezone, append it to the date string:
181185 App\Entity\Order :
182186 properties :
183187 deliveryDate :
184- - GreaterThanOrEqual : today UTC
188+ - GreaterThanOrEqual :
189+ value : today UTC
185190
186191 .. code-block :: xml
187192
@@ -193,7 +198,9 @@ dates. If you want to fix the timezone, append it to the date string:
193198
194199 <class name =" App\Entity\Order" >
195200 <property name =" deliveryDate" >
196- <constraint name =" GreaterThanOrEqual" >today UTC</constraint >
201+ <constraint name =" GreaterThanOrEqual" >
202+ <option name =" value" >today UTC</option >
203+ </constraint >
197204 </property >
198205 </class >
199206 </constraint-mapping >
@@ -241,7 +248,8 @@ current time:
241248 App\Entity\Order :
242249 properties :
243250 deliveryDate :
244- - GreaterThanOrEqual : +5 hours
251+ - GreaterThanOrEqual :
252+ value : +5 hours
245253
246254 .. code-block :: xml
247255
@@ -253,7 +261,9 @@ current time:
253261
254262 <class name =" App\Entity\Order" >
255263 <property name =" deliveryDate" >
256- <constraint name =" GreaterThanOrEqual" >+5 hours</constraint >
264+ <constraint name =" GreaterThanOrEqual" >
265+ <option name =" value" >+5 hours</option >
266+ </constraint >
257267 </property >
258268 </class >
259269 </constraint-mapping >
0 commit comments