DDC-1136: Prevent backup files to be recognized as valid Entity files #1735

doctrinebot opened this Issue May 5, 2011 · 2 comments

2 participants


Jira issue originally created by user fabpot:

The Doctrine2 generator backup Entity files when it adds code into them. The files are named after the original file with a prepended.

The problem is that these backup files are valid PHP files, and as such, they are loaded by Doctrine2. A PHP fatal error is then fired: "Cannot redeclare class...".

Instead of prepending , why not appending , which is a well supported convention? (foo.php vs ~foo.php)

Patch is here: #35


Comment created by @beberlei:

Applied and merged to 2.0.x


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0.5 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment