1
0
mirror of synced 2025-03-04 20:03:21 +03:00
This commit is contained in:
romanb 2007-07-05 19:45:46 +00:00
parent 75613eb450
commit d657b346e3

View File

@ -25,10 +25,10 @@ $query->select("base.name, le.topic, a.name")->from("VForum_Model_ForumNode base
->leftJoin("base.lastEntry le")
->leftJoin("le.author a")
->setHydrationMode(Doctrine_Query::HYDRATE_ARRAY);
$tree = $conn->getTable('VForum_Model_Category')->getTree();
$tree->setBaseQuery($query);
$treeMngr = $conn->getTable('VForum_Model_Category')->getTree();
$treeMngr->setBaseQuery($query);
$tree = $tree->fetchTree();
$tree->resetBaseQuery();
$treeMngr->resetBaseQuery();
This example shows that even array fetching is possible. And since the level is now stored
in the database and is a regular field of every record you can access it like every other field