Commit d657b346 authored by romanb's avatar romanb

Typo

parent 75613eb4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment