@@ 260-266 (lines=7) @@ | ||
257 | $transaction = $db->beginTransaction(); |
|
258 | $oldParentDepth = $oldParent->{$this->depthAttribute}; |
|
259 | $newParentDepth = $this->parent->{$this->depthAttribute}; |
|
260 | if ($newParentDepth < $oldParentDepth) { |
|
261 | $depthOperator = '-'; |
|
262 | $depthDelta = $oldParentDepth - $newParentDepth; |
|
263 | } else { |
|
264 | $depthOperator = '+'; |
|
265 | $depthDelta = $newParentDepth - $oldParentDepth; |
|
266 | } |
|
267 | $commonParentsCondition = [ |
|
268 | 'and', |
|
269 | ['<', $this->leftAttribute, $leftFrom], |
|
@@ 389-395 (lines=7) @@ | ||
386 | $transaction = $db->beginTransaction(); |
|
387 | $oldParentDepth = $oldParent->{$this->depthAttribute}; |
|
388 | $newParentDepth = $this->parent->{$this->depthAttribute}; |
|
389 | if ($newParentDepth < $oldParentDepth) { |
|
390 | $depthOperator = '-'; |
|
391 | $depthDelta = $oldParentDepth - $newParentDepth; |
|
392 | } else { |
|
393 | $depthOperator = '+'; |
|
394 | $depthDelta = $newParentDepth - $oldParentDepth; |
|
395 | } |
|
396 | $newParentCondition = [ |
|
397 | 'and', |
|
398 | ['<=', $this->leftAttribute, $this->parent->{$this->leftAttribute}], |