Author: jphilip
Date: 2010-03-30 21:50:26 +0200 (Tue, 30 Mar 2010)
New Revision: 28896
Modified:
plugins/sfDoctrineTreePlugin/modules/sfDoctrineTree/actions/components.class.php
Log:
Modified method call for fetchRoot in components.class.php
Modified:
plugins/sfDoctrineTreePlugin/modules/sfDoctrineTree/actions/components.class.php
===================================================================
---
plugins/sfDoctrineTreePlugin/modules/sfDoctrineTree/actions/components.class.php
2010-03-30 19:40:13 UTC (rev 28895)
+++
plugins/sfDoctrineTreePlugin/modules/sfDoctrineTree/actions/components.class.php
2010-03-30 19:50:26 UTC (rev 28896)
@@ -19,7 +19,10 @@
if( $rootId )
{
- $root = $treeObject->findRoot($rootId);
+ if (method_exists($treeObject, 'fetchRoot'))
+ $root = $treeObject->fetchRoot($rootId);
+ else
+ $root = $treeObject->getRoot($rootId);
return $treeObject->fetchBranch($root->getId());
} else {
return $treeObject->fetchTree();
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" 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-svn?hl=en.