|
|
|
|
|
|
|
|
return $qb->getQuery()->getResult(); |
|
|
return $qb->getQuery()->getResult(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function findOneByOldUrl($url) |
|
|
|
|
|
{ |
|
|
|
|
|
$qb = $this->createQueryBuilder('entity') |
|
|
|
|
|
->where('entity.oldUrls LIKE :oldUrl') |
|
|
|
|
|
->andWhere('entity.status = 1') |
|
|
|
|
|
->setParameter(':oldUrl', '%'.$url.'%'); |
|
|
|
|
|
|
|
|
|
|
|
return $qb->getQuery()->getOneOrNullResult(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function findByMerchantQuery() :QueryBuilder |
|
|
public function findByMerchantQuery() :QueryBuilder |
|
|
{ |
|
|
{ |
|
|
return $this->createQueryBuilder('e') |
|
|
return $this->createQueryBuilder('e') |