Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function findBetweenDates($d1, $d2){
- $qb = $this->em->createQueryBuilder();
- $qb
- ->select('e')
- ->from($this->repository,'e')
- ->add('where', $qb->expr()->between(
- 'e.date_created',
- ':d1',
- ':d2'
- )
- )
- ->getResult();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement