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

Fixing orm:generate-proxies command to create the destination direction if it does not exist yet

This commit is contained in:
Jonathan H. Wage 2010-04-13 14:12:44 -04:00
parent 10aaf93c44
commit 97e29e00a7

View File

@ -79,6 +79,10 @@ EOT
$destPath = $em->getConfiguration()->getProxyDir(); $destPath = $em->getConfiguration()->getProxyDir();
} }
if ( ! is_dir($destPath)) {
mkdir($destPath, 0777, true);
}
$destPath = realpath($destPath); $destPath = realpath($destPath);
if ( ! file_exists($destPath)) { if ( ! file_exists($destPath)) {