Answers for "get raw sql symfony"

PHP
1

run raw sql with doctrine manager

$em = $this->getDoctrine()->getManager();
   $stmt = $em->getConnection()->prepare($sql);
   $stmt->execute();
   return $stmt->fetchAll();
Posted by: Guest on July-13-2020

Browse Popular Code Answers by Language