Baum\Move::applyLockBetween PHP Method

applyLockBetween() protected method

Applies a lock to the rows between the supplied index boundaries.
protected applyLockBetween ( integer $lft, integer $rgt ) : void
$lft integer
$rgt integer
return void
    protected function applyLockBetween($lft, $rgt)
    {
        $this->node->newQuery()->where($this->node->getLeftColumnName(), '>=', $lft)->where($this->node->getRightColumnName(), '<=', $rgt)->select($this->node->getKeyName())->lockForUpdate()->get();
    }