diff --git a/book/doctrine.rst b/book/doctrine.rst index dc99a0b24a1..a786c2c931e 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -401,7 +401,8 @@ doesn't replace your existing methods). The ``doctrine:generate:entities`` command saves a backup of the original ``Product.php`` named ``Product.php~``. In some cases, the presence of this file can cause a "Cannot redeclare class" error. It can be safely - removed. + removed. You can also use the ``--no-backup`` option to prevent generating + these backup files. Note that you don't *need* to use this command. Doctrine doesn't rely on code generation. Like with normal PHP classes, you just need to make