fixed bug to always parse tree options as array
This commit is contained in:
parent
e49ebe57d8
commit
2662410495
@ -1393,9 +1393,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
|
||||
public function getTree() {
|
||||
if (isset($this->options['treeImpl'])) {
|
||||
if ( ! $this->tree) {
|
||||
$options = isset($this->options['treeOptions']) ? $this->options['treeOptions'] : array();
|
||||
$this->tree = Doctrine_Tree::factory($this,
|
||||
$this->options['treeImpl'],
|
||||
$this->options['treeOptions']
|
||||
$options
|
||||
);
|
||||
}
|
||||
return $this->tree;
|
||||
|
Loading…
Reference in New Issue
Block a user