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