[PR #35] [MERGED] prevent backup file to be recognized as valid Entity file #7620

Closed
opened 2026-01-22 15:56:02 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/35
Author: @brikou
Created: 3/15/2011
Status: Merged
Merged: 5/12/2011
Merged by: @beberlei

Base: masterHead: master


📝 Commits (1)

  • 9a8e8ce Edited lib/Doctrine/ORM/Tools/EntityGenerator.php via GitHub

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/EntityGenerator.php (+1 -1)

📄 Description

when using symfony command "./app/console doctrine:generate:entities MyHelloBundle", backup file are detected as "running" Entities and I get "PHP Fatal error: Cannot redeclare class..."

When adding ~ at the end it is now fine (even for the IDE parser) and follow vim backup convention


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/35 **Author:** [@brikou](https://github.com/brikou) **Created:** 3/15/2011 **Status:** ✅ Merged **Merged:** 5/12/2011 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`9a8e8ce`](https://github.com/doctrine/orm/commit/9a8e8ce35d6fbf38d638e9cd34e80b5894c3b69b) Edited lib/Doctrine/ORM/Tools/EntityGenerator.php via GitHub ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/EntityGenerator.php` (+1 -1) </details> ### 📄 Description when using symfony command "./app/console doctrine:generate:entities MyHelloBundle", backup file are detected as "running" Entities and I get "PHP Fatal error: Cannot redeclare class..." When adding ~ at the end it is now fine (even for the IDE parser) and follow vim backup convention --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:56:02 +01:00
admin closed this issue 2026-01-22 15:56:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7620