To fetch a tree in nested sets we have to do a cartesian product (every with every).
select * from tree as t1, tree as t2
or
select * from tree as t1 cross join tree as t2
It was easy with zf1, but in zf2 there is no cross join when using \Zend\Db\Sql\Select object?
Is there any way to achieve it using Select()? Or plain sql query is the only way?
Googling failed me unfortunately, so thanks in advance for any suggestions.
It is possible to pass type of join as last argument
So, zf1 method
joinCross(table, [columns])equivalents to zf2join($name, $on, $columns, 'cross')