symfony2: how to use group_concat in QueryBuilder

后端 未结 4 662
眼角桃花
眼角桃花 2020-12-01 09:11

I am having nested-set (using Gedmo tree) entity called \"Location\". Entity \"Appartment\" has location_id and what I need to do it to map scalar value called eg \"path\" t

4条回答
  •  有刺的猬
    2020-12-01 09:53

    I had similar problem. GROUP_CONCAT does not allow using CASE-WHEN inside. This library fixed my issues, so maybe it will be helpful.

提交回复
热议问题