ZF2 discussion module, sql tree traversal