protected function createOrmProxyDirectory($tmpDir)
{
// Create entity proxy directory
$proxyCacheDir = $tmpDir.'/doctrine/orm/Proxies';
if (!is_dir($proxyCacheDir)) {
if (false === @mkdir($proxyCacheDir, 0777, true)) {
die(sprintf('Unable to create the Doctrine Proxy directory (%s)', dirname($proxyCacheDir)));
}
} elseif (!is_writable($proxyCacheDir)) {
die(sprintf('Unable to write in the Doctrine Proxy directory (%s)', $proxyCacheDir));
}
}