Edited lib/Doctrine/ORM/Tools/EntityGenerator.php via GitHub
This commit is contained in:
parent
180078d0f6
commit
9a8e8ce35d
@ -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.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user