Changeset 4709 for branches/1.0/lib/Doctrine/Data/Import.php
- Timestamp:
- 07/24/08 03:32:03 (6 months ago)
- Files:
-
- 1 modified
-
branches/1.0/lib/Doctrine/Data/Import.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Data/Import.php
r4677 r4709 239 239 } 240 240 241 $templates = array_keys(Doctrine::getTable($className)->getTemplates()); 242 243 if (in_array('Doctrine_Template_NestedSet', $templates)) { 241 if (Doctrine::getTable($className)->isTree()) { 244 242 $nestedSets[$className][] = $data; 245 243 $this->_buildNestedSetRows($className, $data); … … 276 274 $templates = array_keys($obj->getTable()->getTemplates()); 277 275 278 if ($obj instanceof $model && ! in_array('Doctrine_Template_NestedSet', $templates)) {276 if ($obj instanceof $model && ! $obj->getTable()->isTree()) { 279 277 $obj->save(); 280 278 }