@@ -104,8 +104,8 @@ that a date must at least be the next day:
104
104
105
105
.. code-block :: php-annotations
106
106
107
- // src/Acme/OrderBundle /Entity/Order.php
108
- namespace Acme\OrderBundle \Entity;
107
+ // src/AppBundle /Entity/Order.php
108
+ namespace AppBundle \Entity;
109
109
110
110
use Symfony\Component\Validator\Constraints as Assert;
111
111
@@ -119,21 +119,21 @@ that a date must at least be the next day:
119
119
120
120
.. code-block :: yaml
121
121
122
- # src/Acme/OrderBundle /Resources/config/validation.yml
123
- Acme\OrderBundle \Entity\Order :
122
+ # src/AppBundle /Resources/config/validation.yml
123
+ AppBundle \Entity\Order :
124
124
properties :
125
125
deliveryDate :
126
126
- GreaterThan : today
127
127
128
128
.. code-block :: xml
129
129
130
- <!-- src/Acme/OrderBundle /Resources/config/validation.xml -->
130
+ <!-- src/AppBundle /Resources/config/validation.xml -->
131
131
<?xml version =" 1.0" encoding =" UTF-8" ?>
132
132
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
133
133
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
134
134
xsi : schemaLocation =" http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd" >
135
135
136
- <class name =" Acme\OrderBundle \Entity\Order" >
136
+ <class name =" AppBundle \Entity\Order" >
137
137
<property name =" deliveryDate" >
138
138
<constraint name =" GreaterThan" >today</constraint >
139
139
</property >
@@ -142,8 +142,8 @@ that a date must at least be the next day:
142
142
143
143
.. code-block :: php
144
144
145
- // src/Acme/OrderBundle /Entity/Order.php
146
- namespace Acme\OrderBundle \Entity;
145
+ // src/AppBundle /Entity/Order.php
146
+ namespace AppBundle \Entity;
147
147
148
148
use Symfony\Component\Validator\Mapping\ClassMetadata;
149
149
use Symfony\Component\Validator\Constraints as Assert;
@@ -163,8 +163,8 @@ dates. If you want to fix the timezone, append it to the date string:
163
163
164
164
.. code-block :: php-annotations
165
165
166
- // src/Acme/OrderBundle /Entity/Order.php
167
- namespace Acme\OrderBundle \Entity;
166
+ // src/AppBundle /Entity/Order.php
167
+ namespace AppBundle \Entity;
168
168
169
169
use Symfony\Component\Validator\Constraints as Assert;
170
170
@@ -178,21 +178,21 @@ dates. If you want to fix the timezone, append it to the date string:
178
178
179
179
.. code-block :: yaml
180
180
181
- # src/Acme/OrderBundle /Resources/config/validation.yml
182
- Acme\OrderBundle \Entity\Order :
181
+ # src/AppBundle /Resources/config/validation.yml
182
+ AppBundle \Entity\Order :
183
183
properties :
184
184
deliveryDate :
185
185
- GreaterThan : today UTC
186
186
187
187
.. code-block :: xml
188
188
189
- <!-- src/Acme/OrderBundle /Resources/config/validation.xml -->
189
+ <!-- src/AppBundle /Resources/config/validation.xml -->
190
190
<?xml version =" 1.0" encoding =" UTF-8" ?>
191
191
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
192
192
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
193
193
xsi : schemaLocation =" http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd" >
194
194
195
- <class name =" Acme\OrderBundle \Entity\Order" >
195
+ <class name =" AppBundle \Entity\Order" >
196
196
<property name =" deliveryDate" >
197
197
<constraint name =" GreaterThan" >today UTC</constraint >
198
198
</property >
@@ -201,8 +201,8 @@ dates. If you want to fix the timezone, append it to the date string:
201
201
202
202
.. code-block :: php
203
203
204
- // src/Acme/OrderBundle /Entity/Order.php
205
- namespace Acme\OrderBundle \Entity;
204
+ // src/AppBundle /Entity/Order.php
205
+ namespace AppBundle \Entity;
206
206
207
207
use Symfony\Component\Validator\Mapping\ClassMetadata;
208
208
use Symfony\Component\Validator\Constraints as Assert;
@@ -223,8 +223,8 @@ current time:
223
223
224
224
.. code-block :: php-annotations
225
225
226
- // src/Acme/OrderBundle /Entity/Order.php
227
- namespace Acme\OrderBundle \Entity;
226
+ // src/AppBundle /Entity/Order.php
227
+ namespace AppBundle \Entity;
228
228
229
229
use Symfony\Component\Validator\Constraints as Assert;
230
230
@@ -238,21 +238,21 @@ current time:
238
238
239
239
.. code-block :: yaml
240
240
241
- # src/Acme/OrderBundle /Resources/config/validation.yml
242
- Acme\OrderBundle \Entity\Order :
241
+ # src/AppBundle /Resources/config/validation.yml
242
+ AppBundle \Entity\Order :
243
243
properties :
244
244
deliveryDate :
245
245
- GreaterThan : +5 hours
246
246
247
247
.. code-block :: xml
248
248
249
- <!-- src/Acme/OrderBundle /Resources/config/validation.xml -->
249
+ <!-- src/AppBundle /Resources/config/validation.xml -->
250
250
<?xml version =" 1.0" encoding =" UTF-8" ?>
251
251
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
252
252
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
253
253
xsi : schemaLocation =" http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd" >
254
254
255
- <class name =" Acme\OrderBundle \Entity\Order" >
255
+ <class name =" AppBundle \Entity\Order" >
256
256
<property name =" deliveryDate" >
257
257
<constraint name =" GreaterThan" >+5 hours</constraint >
258
258
</property >
@@ -261,8 +261,8 @@ current time:
261
261
262
262
.. code-block :: php
263
263
264
- // src/Acme/OrderBundle /Entity/Order.php
265
- namespace Acme\OrderBundle \Entity;
264
+ // src/AppBundle /Entity/Order.php
265
+ namespace AppBundle \Entity;
266
266
267
267
use Symfony\Component\Validator\Mapping\ClassMetadata;
268
268
use Symfony\Component\Validator\Constraints as Assert;
0 commit comments