Commit 46e5a0d2 authored by romanb's avatar romanb

Fixed multiple-root setup with new syntax (actAs/loadTemplate). Forgot to pass the parameters.

parent 7ad2c77a
...@@ -471,7 +471,7 @@ class Doctrine_Node_NestedSet extends Doctrine_Node implements Doctrine_Node_Int ...@@ -471,7 +471,7 @@ class Doctrine_Node_NestedSet extends Doctrine_Node implements Doctrine_Node_Int
/** /**
* Accomplishes moving of nodes between different trees. * 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 Doctrine_Record $dest
* @param unknown_type $newLeftValue * @param unknown_type $newLeftValue
......
...@@ -31,11 +31,16 @@ ...@@ -31,11 +31,16 @@
*/ */
class Doctrine_Template_NestedSet extends Doctrine_Template class Doctrine_Template_NestedSet extends Doctrine_Template
{ {
private $_options;
public function __construct(array $options) public function __construct(array $options)
{} {
$this->_options = $options;
}
public function setUp() public function setUp()
{ {
$this->_table->setOption('treeOptions', $this->_options);
$this->_table->setOption('treeImpl', 'NestedSet'); $this->_table->setOption('treeImpl', 'NestedSet');
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment