creocoder / yii2-nested-sets

The nested sets behavior for the Yii framework.
Other
446 stars 129 forks source link

Modification methods wrong overwrite properties in the current model. #10

Closed rokorolov closed 9 years ago

rokorolov commented 10 years ago

moveAsLast and moveAsFirst methods working as expected but after initialization they incorrectly overwrite 'lft' and 'rgt' properties in the current model. And when I update my model (saveNode()), correct property in the table overwrites whith this wrong data. There is problem with method correctCachedOnMoveNode(), when I turn it of , methods start working properly.

creocoder commented 10 years ago

Thanks. Working on this.

creocoder commented 9 years ago

There is no more internal cache. Its planned as depency. Also behavior can be used without any cache for now. So we can complettely forget about troubles like this in future.