Doctrine资源库findOneBy打印sql。为什么?我怎么能禁用它?

时间:2012-11-28 10:42:18

标签: codeigniter orm doctrine

$rep = $em->getRepository('Entities\User');
$user = $rep->findOneBy(array('email'=>'d*****e@s*****o.com'));

打印输出:

  

SELECT t0.uid AS uid1,t0.email AS email2,t0.password AS password3,t0.name AS name4,t0.surname AS surname5,t0.matrikel AS matrikel6,t0.status AS status7,t0.registration_time AS registration_time8,t0.gid AS gid9 FROM user t0 WHERE t0.email =? LIMIT 1 array(1){[0] => string(21)“d*****e@s*****o.com”} array(1){[0] => string(6)“string”}

我只是想要实体,而不是打印输出。我在哪里可以禁用它?

1 个答案:

答案 0 :(得分:0)

您可能拥有Echo SQL Logger enabled。把它关掉。