Guest User

Untitled

a guest
May 13th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1.         $clicks = $this->createQueryBuilder()
  2.             ->select('c')
  3.             ->from('AppBundle:Click', 'c')
  4.             ->where('c.date between :startDate and :endDate')
  5.             ->andWhere('c.account in (:accounts)')
  6.             ->setParameters([
  7.                 'startDate' => $start->format('Y-m-d'),
  8.                 'endDate' => $end->format('Y-m-d'),
  9.                 'account' => $accounts
  10.             ])->getDQL();
  11.  
  12.         $transactions = $this->createQueryBuilder()
  13.             ->select('t')
  14.             ->from('AppBundle:Report', 'r')
  15.             ->where('r.date between :startDate and :endDate')
  16.             ->andWhere('r.account in (:accounts)')
  17.             ->setParameters([
  18.                 'startDate' => $start->format('Y-m-d 0:0:0'),
  19.                 'endDate' => $end->format('Y-m-d 23:59:59'),
  20.                 'accounts' => $accounts
  21.             ])->getDQL();
Add Comment
Please, Sign In to add comment