Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = $this->entityManager->createQueryBuilder()
- ->select('sm')
- ->from('AppBundle:ScheduleMeta', 'sm')
- ->innerJoin('AppBundle:ScheduleEvent', 'se', 'WITH', 'sm = se.scheduleMeta')
- ->leftJoin('sm.pricingOptions', 'po')
- ->andWhere('po.id IS NOT NULL OR se.isFree = true')
- ->getQuery()
- ->useQueryCache(true)
- ;
Add Comment
Please, Sign In to add comment