public function getRelation($modelName): ?RowInterface
    {
        $relations = $this->getRelations($modelName);
        return empty($relations) ? null : current($relations);
    }
public function getRelation($modelName): ?RowInterface
    {
        $relations = $this->getRelations($modelName);
        return empty($relations) ? null : current($relations);
    }
public function getRelation ( $ modelName ) : ? RowInterface { $ relations = $ this -> getRelations ( $ modelName ) ; return empty ( $ relations ) ? null : current ( $ relations ) ; }
Get relation by model name

@param  string $modelName

@return RowInterface
@throws RelationNotFoundException
@throws TableNotFoundException
Get relation by model name