I need to put SQL native in query Builder Doctrine2
问题 i need to work with SQL NATIVE in query Builder doctrine 2 for using SQL Function (CONCAT,REPLACE,LDAP) . please Help me. 回答1: You may try : $connection = $this->get('doctrine')->getConnection(); $toto = "toto"; $foo = "foo"; $params = array('param1' => $toto, 'param2' => $foo); $request = "SELECT * FROM table WHERE param1 = :param1 AND param2 = :param2"; try { $stmt = $connection->executeQuery($request, $params); } catch (\PDOException $e) { // echo $e->getMessage(); } while (($result =