public function getDepositHistoryQuery(Account $account) { $qb = $this->blm->getRepository()->createQueryBuilder('e'); $qb->andWhere('e.account = ' . $account->getId()); return $qb; }
public function findByAccount(Account $account) { return $this->repository->findBy(array('account' => $account->getId())); }