1
0
mirror of synced 2024-12-13 22:56:04 +03:00

fixed bug to always parse tree options as array

This commit is contained in:
joesimms 2007-02-08 13:39:27 +00:00
parent e49ebe57d8
commit 2662410495

View File

@ -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;