Answer the question
In order to leave comments, you need to log in
How to find Doctrine 2 memory leak?
There is a script in which the data is chased around the cycle, there is a lot of data, but they themselves are quite light. The script looks something like this
$manager->getConnection()->getConfiguration()->setSQLLogger(null);
foreach($projects as $project) {
$objs = $project->getObjs();
foreach($objs as $obj) {
$manager->persist($newObj);
}
$manager->flush();
$manager->clear();
gc_collect_cycles();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question