public static function resolveRelation($model, $relModel)
    {
        if (is_string($relModel) &&
            BaseOrm::RECURSIVE_RELATIONSHIP_CONSTANT == $relModel) {
            return self::resolveRelation($model, $model);
        } elseif ($relModel instanceof Model) {
            return $relModel->getMeta()->getNSModelName();
        }

        return $relModel;
    }
public static function resolveRelation($model, $relModel)
    {
        if (is_string($relModel) &&
            BaseOrm::RECURSIVE_RELATIONSHIP_CONSTANT == $relModel) {
            return self::resolveRelation($model, $model);
        } elseif ($relModel instanceof Model) {
            return $relModel->getMeta()->getNSModelName();
        }

        return $relModel;
    }
public static function resolveRelation ( $ model , $ relModel ) { if ( is_string ( $ relModel ) && BaseOrm :: RECURSIVE_RELATIONSHIP_CONSTANT == $ relModel ) { return self :: resolveRelation ( $ model , $ model ) ; } elseif ( $ relModel instanceof Model ) { return $ relModel -> getMeta ( ) -> getNSModelName ( ) ; } return $ relModel ; }
Resolve the model name incase is self-referencing model.

@param $model
@param $relModel

@return mixed

@throws \Eddmash\PowerOrm\Exception\AppRegistryNotReady
Resolve the model name incase is self - referencing model .