private function getJoinsFields(string $className): array
    {
        $fields = [];
        $associations = $this->entityManager->getClassMetadata($className)->associationMappings;
        foreach ($associations as $association) {
            $field = [
                'name' => $association['fieldName'],
                'type' => $this->types->getJoinOn($association['targetEntity']),
            ];

            $fields[] = $field;
        }

        return $fields;
    }
private function getJoinsFields(string $className): array
    {
        $fields = [];
        $associations = $this->entityManager->getClassMetadata($className)->associationMappings;
        foreach ($associations as $association) {
            $field = [
                'name' => $association['fieldName'],
                'type' => $this->types->getJoinOn($association['targetEntity']),
            ];

            $fields[] = $field;
        }

        return $fields;
    }
private function getJoinsFields ( string $ className ) : array { $ fields = [ ] ; $ associations = $ this -> entityManager -> getClassMetadata ( $ className ) -> associationMappings ; foreach ( $ associations as $ association ) { $ field = [ 'name' => $ association [ 'fieldName' ] , 'type' => $ this -> types -> getJoinOn ( $ association [ 'targetEntity' ] ) , ] ; $ fields [ ] = $ field ; } return $ fields ; }
Get the all the possible relations to be joined

@param string $className

@return array
Get the all the possible relations to be joined