src/MaterializedPathBehavior.php
public function getParentPath($asArray = true)
    {
        if ($this->owner->isRoot()) {
            return null;
        }
        $path = $this->owner->getPath();
        array_pop($path);
        return $asArray ? $path : $this->convertPathFromPhpToPg($path);
    }
public function getParentPath($asArray = true)
    {
        if ($this->owner->isRoot()) {
            return null;
        }
        $path = $this->owner->getPath();
        array_pop($path);
        return $asArray ? $path : $this->convertPathFromPhpToPg($path);
    }
public function getParentPath ( $ asArray = true ) { if ( $ this -> owner -> isRoot ( ) ) { return null ; } $ path = $ this -> owner -> getPath ( ) ; array_pop ( $ path ) ; return $ asArray ? $ path : $ this -> convertPathFromPhpToPg ( $ path ) ; }
Returns path from root to parent node.

@param bool $asArray = true
@return null|string|array|\yii\db\ArrayExpression
Returns path from root to parent node .