php/symfony/doctrine memory leak?

后端 未结 9 1784
旧时难觅i
旧时难觅i 2020-11-30 00:34

I\'m having problems with a batch insertion of objects into a database using symfony 1.4 and doctrine 1.2.

My model has a certain kind of object called \"Sector\", e

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 01:37

    Try to break circular reference which usually cause memory leaks with

    $cupo->save();
    
    $cupo->free(); //this call
    

    as described in Doctrine manual.

提交回复
热议问题