public function getParentModel($withNamespace = false)
    {
        /** @var BaseModel $path */
        $config = $this->getDI()->get('config');
        $modelNameSpace = $config['namespaces']['models'];
        $path = $modelNameSpace . $this->getModelName();
        $parentModelName = $path::$parentModel;

        if (!$parentModelName) {
            return false;
        }

        return $withNamespace ? $modelNameSpace . $parentModelName : $parentModelName;
    }
public function getParentModel($withNamespace = false)
    {
        /** @var BaseModel $path */
        $config = $this->getDI()->get('config');
        $modelNameSpace = $config['namespaces']['models'];
        $path = $modelNameSpace . $this->getModelName();
        $parentModelName = $path::$parentModel;

        if (!$parentModelName) {
            return false;
        }

        return $withNamespace ? $modelNameSpace . $parentModelName : $parentModelName;
    }
public function getParentModel ( $ withNamespace = false ) { /** @var BaseModel $path */ $ config = $ this -> getDI ( ) -> get ( 'config' ) ; $ modelNameSpace = $ config [ 'namespaces' ] [ 'models' ] ; $ path = $ modelNameSpace . $ this -> getModelName ( ) ; $ parentModelName = $ path :: $ parentModel ; if ( ! $ parentModelName ) { return false ; } return $ withNamespace ? $ modelNameSpace . $ parentModelName : $ parentModelName ; }
get the model name or full namespace

@param boolean $withNamespace return the namespace or just the name
@return mixed either a model namespace or model name, false if not defined
get the model name or full namespace