public function prev() {
        $condition = [$this->rightAttribute => $this->owner->getAttribute($this->leftAttribute) - 1];
        $this->applyTreeAttributeCondition($condition);

        return $this->owner->find()->andWhere($condition);
    }
public function prev() {
        $condition = [$this->rightAttribute => $this->owner->getAttribute($this->leftAttribute) - 1];
        $this->applyTreeAttributeCondition($condition);

        return $this->owner->find()->andWhere($condition);
    }
public function prev ( ) { $ condition = [ $ this -> rightAttribute => $ this -> owner -> getAttribute ( $ this -> leftAttribute ) - 1 ] ; $ this -> applyTreeAttributeCondition ( $ condition ) ; return $ this -> owner -> find ( ) -> andWhere ( $ condition ) ; }
Gets the previous sibling of the node.
@return \yii\db\ActiveQuery
Gets the previous sibling of the node .