@@ 268-274 (lines=7) @@ | ||
265 | $transaction = $db->beginTransaction(); |
|
266 | $oldParentDepth = $oldParent->{$this->depthAttribute}; |
|
267 | $newParentDepth = $this->parent->{$this->depthAttribute}; |
|
268 | if ($newParentDepth < $oldParentDepth) { |
|
269 | $depthOperator = '-'; |
|
270 | $depthDelta = $oldParentDepth - $newParentDepth; |
|
271 | } else { |
|
272 | $depthOperator = '+'; |
|
273 | $depthDelta = $newParentDepth - $oldParentDepth; |
|
274 | } |
|
275 | $commonParentsCondition = [ |
|
276 | 'and', |
|
277 | ['<', $this->leftAttribute, $leftFrom], |
|
@@ 400-406 (lines=7) @@ | ||
397 | $transaction = $db->beginTransaction(); |
|
398 | $oldParentDepth = $oldParent->{$this->depthAttribute}; |
|
399 | $newParentDepth = $this->parent->{$this->depthAttribute}; |
|
400 | if ($newParentDepth < $oldParentDepth) { |
|
401 | $depthOperator = '-'; |
|
402 | $depthDelta = $oldParentDepth - $newParentDepth; |
|
403 | } else { |
|
404 | $depthOperator = '+'; |
|
405 | $depthDelta = $newParentDepth - $oldParentDepth; |
|
406 | } |
|
407 | $newParentCondition = [ |
|
408 | 'and', |
|
409 | ['<=', $this->leftAttribute, $this->parent->{$this->leftAttribute}], |