public function findAllForAccount(Account $account, \DateTimeImmutable $dateStart, \DateTimeImmutable $dateEnd)
    {
        $this->addWhere('account_id', $account->getId());

        $this->addWhere('transaction_date', $dateStart->format('Y-m-d'), '>=');
        $this->addWhere('transaction_date', $dateEnd->format('Y-m-d'), '<=');
        $this->addOrder('transaction_date');

        return $this->select();
    }
public function findAllForAccount(Account $account, \DateTimeImmutable $dateStart, \DateTimeImmutable $dateEnd)
    {
        $this->addWhere('account_id', $account->getId());

        $this->addWhere('transaction_date', $dateStart->format('Y-m-d'), '>=');
        $this->addWhere('transaction_date', $dateEnd->format('Y-m-d'), '<=');
        $this->addOrder('transaction_date');

        return $this->select();
    }
public function findAllForAccount ( Account $ account , \ DateTimeImmutable $ dateStart , \ DateTimeImmutable $ dateEnd ) { $ this -> addWhere ( 'account_id' , $ account -> getId ( ) ) ; $ this -> addWhere ( 'transaction_date' , $ dateStart -> format ( 'Y-m-d' ) , '>=' ) ; $ this -> addWhere ( 'transaction_date' , $ dateEnd -> format ( 'Y-m-d' ) , '<=' ) ; $ this -> addOrder ( 'transaction_date' ) ; return $ this -> select ( ) ; }
Get list of transactions for given account between specified dates.

@param Account            $account
@param \DateTimeImmutable $dateStart
@param \DateTimeImmutable $dateEnd
@return \Eureka\Package\Money\DataMapper\Data\Money\Transaction[]
Get list of transactions for given account between specified dates .