【发布时间】:2013-09-14 17:25:59
【问题描述】:
要在嵌套集中获取树,我们必须进行笛卡尔积(每个与每个)。
select * from tree as t1, tree as t2
或
select * from tree as t1 cross join tree as t2
使用 zf1 很容易,但是在 zf2 中使用 \Zend\Db\Sql\Select 对象时没有交叉连接?
有没有办法使用 Select() 来实现它?还是纯 sql 查询是唯一的方法?
不幸的是,谷歌搜索失败了,所以提前感谢您的任何建议。
【问题讨论】:
标签: zend-framework2 nested-sets cross-join