Commit 26624104 authored by joesimms's avatar joesimms

fixed bug to always parse tree options as array

parent e49ebe57
...@@ -1393,9 +1393,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable ...@@ -1393,9 +1393,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
public function getTree() { public function getTree() {
if (isset($this->options['treeImpl'])) { if (isset($this->options['treeImpl'])) {
if ( ! $this->tree) { if ( ! $this->tree) {
$options = isset($this->options['treeOptions']) ? $this->options['treeOptions'] : array();
$this->tree = Doctrine_Tree::factory($this, $this->tree = Doctrine_Tree::factory($this,
$this->options['treeImpl'], $this->options['treeImpl'],
$this->options['treeOptions'] $options
); );
} }
return $this->tree; return $this->tree;
......
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