Doctrine 2. Auto generating proxies

前端 未结 3 584
鱼传尺愫
鱼传尺愫 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:15

    I don't think AutoGenerated proxies care.

    Instead of pushing autogenerated proxies to production, you should probably doctrine orm:generate-proxies, which I suspect will put them in the place your production code is configured to look for them.

提交回复
热议问题