Browse Source

[Frontoffice] Bug code reduction

feature/export_comptable
Fab 4 years ago
parent
commit
83ae5f549c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ShopBundle/Repository/ReductionCartRepository.php

+ 2
- 2
ShopBundle/Repository/ReductionCartRepository.php View File

return ReductionCartInterface::class; return ReductionCartInterface::class;
} }


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


public function getValuesOfFieldType(){ public function getValuesOfFieldType(){

Loading…
Cancel
Save