mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1136: Prevent backup files to be recognized as valid Entity files #1423
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (May 5, 2011).
Originally assigned to: @beberlei on GitHub.
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: https://github.com/doctrine/doctrine2/pull/35
@doctrinebot commented on GitHub (May 14, 2011):
Comment created by @beberlei:
Applied and merged to 2.0.x
@doctrinebot commented on GitHub (May 14, 2011):
Issue was closed with resolution "Fixed"