Doctrine error: “Failed opening required '/tmp/__CG__Source.php' ”

前端 未结 3 2090
陌清茗
陌清茗 2021-01-31 08:43

I am trying to migrate my PHP application to an Ubuntu server, but without succes. Any help would be appreciated.

First I installed Doctrine successfully into /jorrit/mya

3条回答
  •  眼角桃花
    2021-01-31 09:14

    In code after $config line you could try $config->setAutoGenerateProxyClasses(true);

    But the CLI version is much better, because it avoids on refresh regen as in code might not avoid.

    To change cache dir you could try:

    $cacheDir = dirname(__FILE__).'/cache';
    if (!is_dir($cacheDir)) {
        mkdir($cacheDir);
    }
    
    
    $config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode, $cacheDir);
    

提交回复
热议问题