From 97e29e00a7d822d4d2bc43634fed8797073b6fae Mon Sep 17 00:00:00 2001 From: "Jonathan H. Wage" Date: Tue, 13 Apr 2010 14:12:44 -0400 Subject: [PATCH] Fixing orm:generate-proxies command to create the destination direction if it does not exist yet --- .../ORM/Tools/Console/Command/GenerateProxiesCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php index 5f71125d0..412cf869b 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php @@ -79,6 +79,10 @@ EOT $destPath = $em->getConfiguration()->getProxyDir(); } + if ( ! is_dir($destPath)) { + mkdir($destPath, 0777, true); + } + $destPath = realpath($destPath); if ( ! file_exists($destPath)) {