src/Service/Search.php
private function applyJoins() : void
    {
        foreach ($this->getAssociations() as $association) {
            switch ($association->type()) {
                case Association::MANY_TO_ONE:
                    $this->query->leftJoinWith($association->getName());
                    break;

                case Association::ONE_TO_ONE:
                case Association::ONE_TO_MANY:
                case Association::MANY_TO_MANY:
                default:
                    break;
            }
        }
    }
private function applyJoins() : void
    {
        foreach ($this->getAssociations() as $association) {
            switch ($association->type()) {
                case Association::MANY_TO_ONE:
                    $this->query->leftJoinWith($association->getName());
                    break;

                case Association::ONE_TO_ONE:
                case Association::ONE_TO_MANY:
                case Association::MANY_TO_MANY:
                default:
                    break;
            }
        }
    }
private function applyJoins ( ) : void { foreach ( $ this -> getAssociations ( ) as $ association ) { switch ( $ association -> type ( ) ) { case Association :: MANY_TO_ONE : $ this -> query -> leftJoinWith ( $ association -> getName ( ) ) ; break ; case Association :: ONE_TO_ONE : case Association :: ONE_TO_MANY : case Association :: MANY_TO_MANY : default : break ; } } }
Applies association joins to the Query.

@return void
Applies association joins to the Query .