Skip to content

BUG: $node does not have function getIsDeletedRecord() when calling appendTo #32

@ptheofan

Description

@ptheofan

This was hidden behind a rollback failure! Reached this after I modified
if(isset($transaction) && $transaction->active)
(at line 662)

Exception Message: Category and its behaviors do not have a method or closure named "getIsDeletedRecord".
Trace:
#0 /yii/db/ar/CActiveRecord.php(225): CComponent->__call('getIsDeletedRec...', Array)
#1 /application/components/behaviors/NestedSetBehavior.php(904): CActiveRecord->__call('getIsDeletedRec...', Array)
#2 /application/components/behaviors/NestedSetBehavior.php(904): Category->getIsDeletedRecord()
#3 /application/components/behaviors/NestedSetBehavior.php(658): NestedSetBehavior->correctCachedOnAddNode('2')
#4 /application/components/behaviors/NestedSetBehavior.php(325): NestedSetBehavior->addNode(Object(Category), '2', 1, true, NULL)
#5 [internal function]: NestedSetBehavior->appendTo(Object(Category))

any quickfix ideas/solutions?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions