View Single Post
  #1  
Old 01-05-2024, 10:28 AM
 
xgarb xgarb is offline
 

eXpert
  
Join Date: Jul 2004
Location: UK
Posts: 263
 

Default Logging SQL queries

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();
__________________
Core version: 5.5.xx
Reply With Quote