Answers for "symfony execute query"

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