Changeset 6889
- Timestamp:
- 12/07/09 15:28:21 (8 months ago)
- Location:
- branches/1.2
- Files:
-
- 1 added
- 1 modified
-
lib/Doctrine/Tree/NestedSet.php (modified) (2 diffs)
-
tests/Ticket/DC317TestCase.php (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/lib/Doctrine/Tree/NestedSet.php
r6799 r6889 88 88 { 89 89 if ($this->getAttribute('hasManyRoots')) { 90 if ( ! $record || ( ! $record->exists() && $record->getNode()->getRootValue() <= 0)90 if ( ! $record || ( ! $record->exists() && ! $record->getNode()->getRootValue()) 91 91 || $record->getTable()->isIdentifierComposite()) { 92 92 throw new Doctrine_Tree_Exception("Node must have a root id set or must " … … 96 96 } 97 97 98 if ($record->exists() && $record->getNode()->getRootValue() <= 0) {98 if ($record->exists() && ! $record->getNode()->getRootValue()) { 99 99 // Default: root_id = id 100 100 $identifier = $record->getTable()->getIdentifier();