Too many db queries with DoctrineExtensions Translatable Symfony2 Too many db queries with DoctrineExtensions Translatable Symfony2 symfony symfony

Too many db queries with DoctrineExtensions Translatable Symfony2


Try to set the hydration mode manually as your issue is related to this problem.

Take a look at this answer on how to set the hydration mode. It worked for me.

In my case I simply added the following hints to a query

use Doctrine\ORM\Query;use Gedmo\Translatable\Query\TreeWalker\TranslationWalker;...$query->setHydrationMode(TranslationWalker::HYDRATE_OBJECT_TRANSLATION);$query->setHint(Query::HINT_REFRESH, true);

Hope that helps!