First lets create the query we want to use to retrieve our tree data with:
// test.php
// ...
$q = Doctrine_Query::create()
->select('c.name, p.name, m.name')
->from('Category c')
->leftJoin('c.HottestProduct p')
->leftJoin('p.Manufacturer m');
Now we need to set the above query as the base query for the tree:
$treeObject = Doctrine_Core::getTable('Category')->getTree();
$treeObject->setBaseQuery($q);
$tree = $treeObject->fetchTree();
There it is, the tree with all the related data you need, all in one query.
Contents contributed and discussions participated by Adán Muguiro
1More
1More
Symfony world: Custom admin generator filter example - 0 views
1More
SAKRA WebStudio: Remove PostValidator in Symfony - 0 views
jq_observe_field - 2 views
1More
jQuery: Get the checked and unchecked items from list of checkboxes « Sushant... - 0 views
1More
Ordenamiento en columnas personalizadas en admin generator - 0 views
1More