D
D
Dima2015-05-22 14:41:36
symfony
Dima, 2015-05-22 14:41:36

Sonata Admin + em->clear()?

After editing an object in Sonata Admin, I need to perform actions to find duplicates, I call the repository method from postUpdate, since there are problematic companies, they have a lot of duplicates, I have to call

$this->_em->flush(); 
$this->_em->clear();

every 50 takes to save memory, but then sonata fails to generate link back to edit
MissingMandatoryParametersException
Some mandatory parameters are missing ("childId") to generate a URL for route "admin_***_***_edit".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima, 2015-05-22
@lucchese

The issue was resolved by reloading the methodgenerateUrl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question