From 46e5a0d2f80d0f753cb35208d36f56518f90b344 Mon Sep 17 00:00:00 2001 From: romanb Date: Sat, 4 Aug 2007 17:02:25 +0000 Subject: [PATCH] Fixed multiple-root setup with new syntax (actAs/loadTemplate). Forgot to pass the parameters. --- lib/Doctrine/Node/NestedSet.php | 2 +- lib/Doctrine/Template/NestedSet.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Node/NestedSet.php b/lib/Doctrine/Node/NestedSet.php index 48a4147c4..dafa65bf0 100644 --- a/lib/Doctrine/Node/NestedSet.php +++ b/lib/Doctrine/Node/NestedSet.php @@ -471,7 +471,7 @@ class Doctrine_Node_NestedSet extends Doctrine_Node implements Doctrine_Node_Int /** * Accomplishes moving of nodes between different trees. - * Used by the move* methods if the root value of the two nodes are different. + * Used by the move* methods if the root values of the two nodes are different. * * @param Doctrine_Record $dest * @param unknown_type $newLeftValue diff --git a/lib/Doctrine/Template/NestedSet.php b/lib/Doctrine/Template/NestedSet.php index 0c2ad8658..22ca1babb 100644 --- a/lib/Doctrine/Template/NestedSet.php +++ b/lib/Doctrine/Template/NestedSet.php @@ -31,11 +31,16 @@ */ class Doctrine_Template_NestedSet extends Doctrine_Template { + private $_options; + public function __construct(array $options) - {} + { + $this->_options = $options; + } public function setUp() { + $this->_table->setOption('treeOptions', $this->_options); $this->_table->setOption('treeImpl', 'NestedSet'); } }