got a select that does 10 query in doctrine (Symfony)

后端 未结 2 1908
遥遥无期
遥遥无期 2021-01-29 09:10

I got a big query that execute 11 query, I didnt know where the problem is, but found the problem was in a select a did for geo loc, anyone has an idea how to correct that?

2条回答
  •  星月不相逢
    2021-01-29 09:59

    I am really not sure why but here what was the problem:

    I used select('a.latitude')

    when I should have used...

    select('a.*')

提交回复
热议问题