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;
    }