📜  使用学说管理器运行原始 sql - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:20.744000             🧑  作者: Mango

代码示例1
$em = $this->getDoctrine()->getManager();
   $stmt = $em->getConnection()->prepare($sql);
   $stmt->execute();
   return $stmt->fetchAll();