1
0
mirror of synced 2025-03-05 20:36:15 +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("base.lastEntry le")
->leftJoin("le.author a") ->leftJoin("le.author a")
->setHydrationMode(Doctrine_Query::HYDRATE_ARRAY); ->setHydrationMode(Doctrine_Query::HYDRATE_ARRAY);
$tree = $conn->getTable('VForum_Model_Category')->getTree(); $treeMngr = $conn->getTable('VForum_Model_Category')->getTree();
$tree->setBaseQuery($query); $treeMngr->setBaseQuery($query);
$tree = $tree->fetchTree(); $tree = $tree->fetchTree();
$tree->resetBaseQuery(); $treeMngr->resetBaseQuery();
This example shows that even array fetching is possible. And since the level is now stored 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 in the database and is a regular field of every record you can access it like every other field