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;
            }
        }
    }