|
1234567891011121314151617181920212223242526272829 |
- <?php
-
- namespace Lc\ShopBundle\Repository;
-
- use Lc\ShopBundle\Context\DefaultRepositoryInterface;
- use Lc\ShopBundle\Context\CreditHistoryInterface;
-
-
- class CreditHistoryRepository extends BaseRepository implements DefaultRepositoryInterface
- {
- public function getInterfaceClass()
- {
- return CreditHistoryInterface::class;
- }
-
- public function findAllByUserMerchant($userMerchant)
- {
- return $this->createQueryBuilder('e')
- ->andWhere('e.userMerchant = :userMerchant')
- ->setParameter('userMerchant', $userMerchant)
- ->addOrderBy('e.createdAt', 'DESC')
- ->getQuery()->getResult();
- }
- }
|