leftJoin('acp.closingMotive', 'cm') ->andWhere( $qb->expr()->orX( $qb->expr()->eq('cm.isCanceledAccompanyingPeriod', 'false'), $qb->expr()->isNull('acp.closingMotive') ) ); return $qb; } }