php/symfony/doctrine memory leak?

后端 未结 9 1761
旧时难觅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:17

    What is working for me is calling the free method like this:

    $cupo->save();
    $cupo->free(true); // free also the related components
    unset($cupo);
    

提交回复
热议问题