$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 来自用户 t0 WHERE t0.email = ? 限制 1 数组(1){ [0]=> 字符串(21)“d*****e@s*****o.com”} 数组(1){ [0]=> 字符串(6) “细绳” }
我只想要实体,而不是打印输出。我在哪里可以禁用此功能?