Hello,

I've run into a weird problem when using doctrine NestedSet behavior
together with symfony 1.2.

In the action:

$this->tree = Doctrine::getTable('Group')->getTree()->fetchTree();

In the template:

<?php foreach ($tree as $g): ?>
    <?php echo $g->getNode()->isLeaf() //this issues an additional
query ?>
<?php endforeach ?>

<?php foreach ($tree->getRawValue() as $g): ?>
    <?php echo $g->getNode()->isLeaf() //this does not issue an
additional query ?>
<?php endforeach ?>

The problem seems to be connected to output escaping. Why additional
queries are executed when iterating over escaped values? $object-
>getNode() should NEVER issue a query if the object the node belongs
to is loaded properly.

Regards,
Rytis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to