Hi all, 

I'm using nested set doctrine behavior, and as I my previous issue I'm using a 
helper to render my tree, so here is how I use it :

<div class="blocArbo">
  <h3><?php echo $root->getLabel() ?></h3>
  <?php if ($root->getNode()->hasChildren()) : ?>
    <?php echo render_nested_set(
      sfOutputEscaper::unescape($root->getNode()->getChildren()),
      sfOutputEscaper::unescape($path)
    ) ?>
  <?php endif ?>
</div>

But today, I had a very strange bug, an error like "render_nested_set() must be 
an instance of Doctrine_Collection, boolean given"... 

How is that even possible considering that I'm checking my root node actually 
HAS children ?

For now I fixed it like this : 
  <?php if ($root->getNode()->hasChildren() && false !== 
$root->getNode()->getChildren()) : ?>

But it looks dirty to me...

Any ideas?

Thanks :)

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

Reply via email to