Skip to content

Commit e5c9cca

Browse files
committed
Book/Doctrine : Adding a line about the "--no-backup" option ...
... in the "Generating Getters and Setters" section
1 parent 8ff4543 commit e5c9cca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/doctrine.rst

+2-1
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)