Ver código fonte

Merge branch 'develop'

master
Fab 4 anos atrás
pai
commit
920c0b37b8
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      ShopBundle/Repository/ReductionCartRepository.php

+ 2
- 2
ShopBundle/Repository/ReductionCartRepository.php Ver arquivo

@@ -29,11 +29,11 @@ class ReductionCartRepository extends BaseRepository implements DefaultRepositor
return ReductionCartInterface::class;
}

public function findOneByCode($code)
public function findByCode($code)
{
$query = $this->findByMerchantQuery() ;
$query->andWhere('e.codes LIKE :code')->setParameter('code', '%'.$code.'%') ;
return $query->getQuery()->getOneOrNullResult() ;
return $query->getQuery()->getResult() ;
}

public function getValuesOfFieldType(){

Carregando…
Cancelar
Salvar