Zend Framework 2 How To Set Doctrine 2 Proxy Directory

后端 未结 1 1375
后悔当初
后悔当初 2020-12-16 04:29

So I am using Doctrine 2 module in Zend Framework 2 configured according to Jason Grimes\' turorial (http://www.jasongrimes.org/2012/01/using-doctrine-2-in-zend-framework-2/

相关标签:
1条回答
  • 2020-12-16 04:59

    The default proxy directory is data/DoctrineORMModule/Proxy. I guess you know how to make it writable, right?

    If you need to change it for some reason, you can overwrite the appropriate configuration key:

    <?php
    return array(
        'doctrine' => array(
            'configuration' => array(
                '<YOUR DRIVER NAME (orm_default by default)>' => array(
                    'proxy_dir' => 'data/DoctrineORMModule/Proxy',
                    'proxy_namespace' => 'DoctrineORMModule\Proxy',
                )    
            )
        )
    );
    ?>
    

    Hope this helps.

    0 讨论(0)
提交回复
热议问题