File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
Original file line number Diff line number Diff line change @@ -283,23 +283,28 @@ for the ``Product`` class. This is a safe command - you can run it over and
283
283
over again: it only generates getters and setters that don't exist (i.e. it
284
284
doesn't replace your existing methods).
285
285
286
+ .. caution ::
287
+
288
+ The ``doctrine:generate:entities `` command saves a backup of the original
289
+ ``Product.php `` named ``Product.php~ ``. In some cases, the presence of
290
+ this file can cause a "Cannot redeclare class" error. It can be safely
291
+ removed.
292
+
293
+ You can also generate all known entities (i.e. any PHP class with Doctrine
294
+ mapping information) of a bundle or an entire namespace:
295
+
296
+ .. code-block :: bash
297
+
298
+ php app/console doctrine:generate:entities AcmeStoreBundle
299
+ php app/console doctrine:generate:entities Acme
300
+
286
301
.. note ::
287
302
288
303
Doctrine doesn't care whether your properties are ``protected `` or ``private ``,
289
304
or whether or not you have a getter or setter function for a property.
290
305
The getters and setters are generated here only because you'll need them
291
306
to interact with your PHP object.
292
307
293
- .. tip ::
294
-
295
- You can also generate all known entities (i.e. any PHP class with Doctrine
296
- mapping information) of a bundle or an entire namespace:
297
-
298
- .. code-block :: bash
299
-
300
- php app/console doctrine:generate:entities AcmeStoreBundle
301
- php app/console doctrine:generate:entities Acme
302
-
303
308
Creating the Database Tables/Schema
304
309
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
305
310
You can’t perform that action at this time.
0 commit comments