Skip to content

Commit b5e26a6

Browse files
committed
Merge pull request symfony#2617 from gregquat/patch-10
Book/Doctrine : Adding a line about the "--no-backup" option ...
2 parents 9d84809 + ca80b1a commit b5e26a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/doctrine.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ doesn't replace your existing methods).
401401
The ``doctrine:generate:entities`` command saves a backup of the original
402402
``Product.php`` named ``Product.php~``. In some cases, the presence of
403403
this file can cause a "Cannot redeclare class" error. It can be safely
404-
removed.
404+
removed. You can also use the ``--no-backup`` option to prevent generating
405+
these backup files.
405406

406407
Note that you don't *need* to use this command. Doctrine doesn't rely
407408
on code generation. Like with normal PHP classes, you just need to make

0 commit comments

Comments
 (0)