Browse Source

[Frontend] Bon cadeau nouveautés

feature/module_traiteur_v1
Fab 4 years ago
parent
commit
1b5124f362
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      ShopBundle/Repository/ProductFamilyRepository.php

+ 1
- 0
ShopBundle/Repository/ProductFamilyRepository.php View File

$query->andWhere('e.status = 1'); $query->andWhere('e.status = 1');
$query->andWhere(':now <= e.propertyNoveltyExpirationDate') $query->andWhere(':now <= e.propertyNoveltyExpirationDate')
->setParameter('now', new \DateTime()) ; ->setParameter('now', new \DateTime()) ;
$query->orderBy('e.createdAt', 'DESC');


return $query->getQuery()->getResult() ; return $query->getQuery()->getResult() ;
} }

Loading…
Cancel
Save