@@ -109,16 +109,6 @@ date must lie within the current year like this:
109
109
110
110
.. configuration-block ::
111
111
112
- .. code-block :: yaml
113
-
114
- # src/EventBundle/Resources/config/validation.yml
115
- Acme\EventBundle\Entity\Event :
116
- properties :
117
- startDate :
118
- - Range :
119
- min : first day of January
120
- max : first day of January next year
121
-
122
112
.. code-block :: php-annotations
123
113
124
114
// src/Acme/SocialBundle/Entity/Event.php
@@ -137,6 +127,16 @@ date must lie within the current year like this:
137
127
protected $startDate;
138
128
}
139
129
130
+ .. code-block :: yaml
131
+
132
+ # src/EventBundle/Resources/config/validation.yml
133
+ Acme\EventBundle\Entity\Event :
134
+ properties :
135
+ startDate :
136
+ - Range :
137
+ min : first day of January
138
+ max : first day of January next year
139
+
140
140
.. code-block :: xml
141
141
142
142
<!-- src/Acme/EventBundle/Resources/config/validation.xml -->
@@ -179,16 +179,6 @@ dates. If you want to fix the timezone, append it to the date string:
179
179
180
180
.. configuration-block ::
181
181
182
- .. code-block :: yaml
183
-
184
- # src/EventBundle/Resources/config/validation.yml
185
- Acme\EventBundle\Entity\Event :
186
- properties :
187
- startDate :
188
- - Range :
189
- min : first day of January UTC
190
- max : first day of January next year UTC
191
-
192
182
.. code-block :: php-annotations
193
183
194
184
// src/Acme/SocialBundle/Entity/Event.php
@@ -207,6 +197,16 @@ dates. If you want to fix the timezone, append it to the date string:
207
197
protected $startDate;
208
198
}
209
199
200
+ .. code-block :: yaml
201
+
202
+ # src/EventBundle/Resources/config/validation.yml
203
+ Acme\EventBundle\Entity\Event :
204
+ properties :
205
+ startDate :
206
+ - Range :
207
+ min : first day of January UTC
208
+ max : first day of January next year UTC
209
+
210
210
.. code-block :: xml
211
211
212
212
<!-- src/Acme/EventBundle/Resources/config/validation.xml -->
@@ -249,16 +249,6 @@ can check that a delivery date starts within the next five hours like this:
249
249
250
250
.. configuration-block ::
251
251
252
- .. code-block :: yaml
253
-
254
- # src/OrderBundle/Resources/config/validation.yml
255
- Acme\OrderBundle\Entity\Order :
256
- properties :
257
- deliveryDate :
258
- - Range :
259
- min : now
260
- max : +5 hours
261
-
262
252
.. code-block :: php-annotations
263
253
264
254
// src/Acme/SocialBundle/Entity/Order.php
@@ -277,6 +267,16 @@ can check that a delivery date starts within the next five hours like this:
277
267
protected $deliveryDate;
278
268
}
279
269
270
+ .. code-block :: yaml
271
+
272
+ # src/OrderBundle/Resources/config/validation.yml
273
+ Acme\OrderBundle\Entity\Order :
274
+ properties :
275
+ deliveryDate :
276
+ - Range :
277
+ min : now
278
+ max : +5 hours
279
+
280
280
.. code-block :: xml
281
281
282
282
<!-- src/Acme/OrderBundle/Resources/config/validation.xml -->
0 commit comments