src/Service/Search.php
private function getAssociations() : array
    {
        $result = [];
        foreach ($this->getQueryFields() as $field) {
            $association = $this->getAssociationByField($field);
            if (null === $association) {
                continue;
            }

            if (array_key_exists($association->getName(), $result)) {
                continue;
            }

            $result[$association->getName()] = $association;
        }

        return $result;
    }
private function getAssociations() : array
    {
        $result = [];
        foreach ($this->getQueryFields() as $field) {
            $association = $this->getAssociationByField($field);
            if (null === $association) {
                continue;
            }

            if (array_key_exists($association->getName(), $result)) {
                continue;
            }

            $result[$association->getName()] = $association;
        }

        return $result;
    }
private function getAssociations ( ) : array { $ result = [ ] ; foreach ( $ this -> getQueryFields ( ) as $ field ) { $ association = $ this -> getAssociationByField ( $ field ) ; if ( null === $ association ) { continue ; } if ( array_key_exists ( $ association -> getName ( ) , $ result ) ) { continue ; } $ result [ $ association -> getName ( ) ] = $ association ; } return $ result ; }
Get required associations based on current search criteria.

@return mixed[]
Get required associations based on current search criteria .