From 9a8e8ce35d6fbf38d638e9cd34e80b5894c3b69b Mon Sep 17 00:00:00 2001 From: brikou Date: Tue, 15 Mar 2011 05:39:38 -0700 Subject: [PATCH] Edited lib/Doctrine/ORM/Tools/EntityGenerator.php via GitHub --- lib/Doctrine/ORM/Tools/EntityGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 182dd441b..f6114c9f2 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -183,7 +183,7 @@ public function () } if ($this->_backupExisting && file_exists($path)) { - $backupPath = dirname($path) . DIRECTORY_SEPARATOR . "~" . basename($path); + $backupPath = dirname($path) . DIRECTORY_SEPARATOR . basename($path) . "~"; if (!copy($path, $backupPath)) { throw new \RuntimeException("Attempt to backup overwritten entitiy file but copy operation failed."); }