Anyone know how to do this in 5.5?
I have this but it's wrong
Code:
$entityManager = \XLite\Core\Database::getRepo('XC\ProductTags\Model\Tag')->getEntityManager();
$entityManager->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger());
$repo = $entityManager->getRepository('XC\ProductTags\Model\Tag');
$tags = $repo->findAll();