From 3aa991821b824aa4e4b0a2414849d689ddabb0c1 Mon Sep 17 00:00:00 2001 From: wolfpakz Date: Thu, 29 Nov 2007 01:39:19 +0000 Subject: [PATCH] - Fixed problem with Nested Set table definition not happening in time for exporting when NestedSet behavior is added through Doctrine_Template_NestedSet. --- lib/Doctrine/Template/NestedSet.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Doctrine/Template/NestedSet.php b/lib/Doctrine/Template/NestedSet.php index 346bc120a..630efa810 100644 --- a/lib/Doctrine/Template/NestedSet.php +++ b/lib/Doctrine/Template/NestedSet.php @@ -44,4 +44,9 @@ class Doctrine_Template_NestedSet extends Doctrine_Template $this->_table->setOption('treeOptions', $this->_options); $this->_table->setOption('treeImpl', 'NestedSet'); } + + public function setTableDefinition() + { + $this->_table->getTree()->setTableDefinition(); + } } \ No newline at end of file