Guest User

Untitled

a guest
Mar 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $query = $this->entityManager->createQueryBuilder()
  2. ->select('sm')
  3. ->from('AppBundle:ScheduleMeta', 'sm')
  4. ->innerJoin('AppBundle:ScheduleEvent', 'se', 'WITH', 'sm = se.scheduleMeta')
  5. ->leftJoin('sm.pricingOptions', 'po')
  6. ->andWhere('po.id IS NOT NULL OR se.isFree = true')
  7. ->getQuery()
  8. ->useQueryCache(true)
  9. ;
Add Comment
Please, Sign In to add comment