public function parentGuid($guid)
    {
        $model = $this->noInitModel;
        if (!is_string($model->parentAttribute)) {
            return $this;
        }
        if ($guid instanceof $model) {
            $guid = $guid->getGUID();
        }
        return $this->andWhere([$model->parentAttribute => $guid]);
    }
public function parentGuid($guid)
    {
        $model = $this->noInitModel;
        if (!is_string($model->parentAttribute)) {
            return $this;
        }
        if ($guid instanceof $model) {
            $guid = $guid->getGUID();
        }
        return $this->andWhere([$model->parentAttribute => $guid]);
    }
public function parentGuid ( $ guid ) { $ model = $ this -> noInitModel ; if ( ! is_string ( $ model -> parentAttribute ) ) { return $ this ; } if ( $ guid instanceof $ model ) { $ guid = $ guid -> getGUID ( ) ; } return $ this -> andWhere ( [ $ model -> parentAttribute => $ guid ] ) ; }
Specify parent.
@param array|string $guid parent guid or array of them. non-parent if
empty. If you don't want to specify parent, please do not access this
method.
@return $this
Specify parent .