src/Sulu/Component/Rest/ListBuilder/Doctrine/DoctrineListBuilder.php
protected function getJoins()
    {
        $joins = [];
        $fields = array_merge($this->sortFields, $this->selectFields, $this->searchFields, $this->expressionFields);

        foreach ($fields as $field) {
            $joins = array_merge($joins, $field->getJoins());
        }

        return $joins;
    }
protected function getJoins()
    {
        $joins = [];
        $fields = array_merge($this->sortFields, $this->selectFields, $this->searchFields, $this->expressionFields);

        foreach ($fields as $field) {
            $joins = array_merge($joins, $field->getJoins());
        }

        return $joins;
    }
protected function getJoins ( ) { $ joins = [ ] ; $ fields = array_merge ( $ this -> sortFields , $ this -> selectFields , $ this -> searchFields , $ this -> expressionFields ) ; foreach ( $ fields as $ field ) { $ joins = array_merge ( $ joins , $ field -> getJoins ( ) ) ; } return $ joins ; }
Returns all the joins required for the query.

@return DoctrineJoinDescriptor[]
Returns all the joins required for the query .