【发布时间】:2015-03-24 14:51:56
【问题描述】:
这里是场景:
id parent_id search
1 null hello
2 1 hello/something
3 1 hello/new
4 null new
5 4 new/hello
然后我通过 querybuilder 搜索“你好”这个结果:
1 null hello
2 1 hello/something
3 1 hello/new
5 4 new/hello
5 4 new/hello
如果我只想获取子元素中的所有元素,如何通过 querybuilder 构建嵌套树,包括“hello/something”?
如何使用 symfony 建立数组?
【问题讨论】:
标签: symfony