使用Symfony 3.3和Twig,当我打电话给" app.user",加载此查询:
SELECT
t0.id AS id_1,
t0.username AS username_2,
t0.email AS email_3,
t0.password AS password_4,
...
FROM
user t0
WHERE
t0.id = ?
我是否可以覆盖此查询,以便在Where?
中添加联接和参数我看到了这一点:Using a Custom Query to Load the User
这不是我的情况: loadUserByUsername()使用用户名或电子邮件加载( u.username =:username OR u.email =:email ),twig使用Id( t0.id =?)进行查询
谢谢:)