protected function getRelations()
    {
        $relations = [];
        $rawRelations = $this->getRawRelations();
        foreach ($rawRelations as $rawRelation) {
            $relations[] = $this->getRealtion($rawRelation->foreignTable, $rawRelation->foreignKey, $rawRelation->localKey, $rawRelation->selfReferences);
        }

        return $relations;
    }
protected function getRelations()
    {
        $relations = [];
        $rawRelations = $this->getRawRelations();
        foreach ($rawRelations as $rawRelation) {
            $relations[] = $this->getRealtion($rawRelation->foreignTable, $rawRelation->foreignKey, $rawRelation->localKey, $rawRelation->selfReferences);
        }

        return $relations;
    }
protected function getRelations ( ) { $ relations = [ ] ; $ rawRelations = $ this -> getRawRelations ( ) ; foreach ( $ rawRelations as $ rawRelation ) { $ relations [ ] = $ this -> getRealtion ( $ rawRelation -> foreignTable , $ rawRelation -> foreignKey , $ rawRelation -> localKey , $ rawRelation -> selfReferences ) ; } return $ relations ; }
Get all available relations

@return array of CrestApps\CodeGenerator\Models\ForeignRelationship;
Get all available relations