1
0
mirror of synced 2025-01-18 14:31:40 +03:00

Edited lib/Doctrine/ORM/Tools/EntityGenerator.php via GitHub

This commit is contained in:
brikou 2011-03-15 05:39:38 -07:00
parent 180078d0f6
commit 9a8e8ce35d

View File

@ -183,7 +183,7 @@ public function <methodName>()
}
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.");
}