Doctrine 2. Auto generating proxies

前端 未结 3 630
鱼传尺愫
鱼传尺愫 2021-02-08 10:46

I have a strange problem. I want to turn off the auto generating of my proxies in Doctrine 2. I found this line of code that should do (and does) the trick:

$con         


        
3条回答
  •  南旧
    南旧 (楼主)
    2021-02-08 11:22

    Are you developing on OS X and deploying to Linux? OS X's filesystem is case insensitive. So I'll often run into a problem where I mistype the case of a class, and it runs and passes just fine in the local environment, but chokes on our server.

    So in this case, in OS X, the namespace "Proxies" is able to resolve to "/proxies", but in production, it can't find the class folder, and creates it under "/proxies/Proxies".

提交回复
热议问题