Author: rande
Date: 2010-01-12 02:07:00 +0100 (Tue, 12 Jan 2010)
New Revision: 26515

Modified:
   
plugins/swFormExtraPlugin/branches/sf1.3/lib/widgets/swWidgetFormDoctrineSelectNestedSet.class.php
   
plugins/swFormExtraPlugin/branches/sf1.3/lib/widgets/swWidgetFormDoctrineSelectNestedSetPosition.class.php
Log:
[swFormExtraPlugin] update nested set widget

Modified: 
plugins/swFormExtraPlugin/branches/sf1.3/lib/widgets/swWidgetFormDoctrineSelectNestedSet.class.php
===================================================================
--- 
plugins/swFormExtraPlugin/branches/sf1.3/lib/widgets/swWidgetFormDoctrineSelectNestedSet.class.php
  2010-01-12 00:56:00 UTC (rev 26514)
+++ 
plugins/swFormExtraPlugin/branches/sf1.3/lib/widgets/swWidgetFormDoctrineSelectNestedSet.class.php
  2010-01-12 01:07:00 UTC (rev 26515)
@@ -72,7 +72,7 @@
       throw new sfException('The object is not a Doctrine_Template_NestedSet');
     }
 
-    $root = 
Doctrine::getTable($this->getOption('model'))->getTree()->findRoot();
+    $root = 
Doctrine::getTable($this->getOption('model'))->getTree()->fetchRoot();
 
     if(!$root)
     {

Modified: 
plugins/swFormExtraPlugin/branches/sf1.3/lib/widgets/swWidgetFormDoctrineSelectNestedSetPosition.class.php
===================================================================
--- 
plugins/swFormExtraPlugin/branches/sf1.3/lib/widgets/swWidgetFormDoctrineSelectNestedSetPosition.class.php
  2010-01-12 00:56:00 UTC (rev 26514)
+++ 
plugins/swFormExtraPlugin/branches/sf1.3/lib/widgets/swWidgetFormDoctrineSelectNestedSetPosition.class.php
  2010-01-12 01:07:00 UTC (rev 26515)
@@ -106,7 +106,7 @@
       throw new sfException('The object is not a Doctrine_Template_NestedSet');
     }
 
-    $root = 
Doctrine::getTable($this->getOption('model'))->getTree()->findRoot();
+    $root = 
Doctrine::getTable($this->getOption('model'))->getTree()->fetchRoot();
 
     if(!$root)
     {

-- 
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.


Reply via email to