public function getRelations($modelName): array
    {
        if (!isset($this->relations[$modelName])) {
            $this->relations[$modelName] = Relations::findRelation($this, $modelName);
        }

        return $this->relations[$modelName];
    }
public function getRelations($modelName): array
    {
        if (!isset($this->relations[$modelName])) {
            $this->relations[$modelName] = Relations::findRelation($this, $modelName);
        }

        return $this->relations[$modelName];
    }
public function getRelations ( $ modelName ) : array { if ( ! isset ( $ this -> relations [ $ modelName ] ) ) { $ this -> relations [ $ modelName ] = Relations :: findRelation ( $ this , $ modelName ) ; } return $ this -> relations [ $ modelName ] ; }
Get relations by model name

@param  string $modelName

@return RowInterface[]
@throws RelationNotFoundException
@throws TableNotFoundException
Get relations by model name