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

@@ -75,6 +75,7 @@ class ProductFamilyRepository extends BaseRepository implements DefaultRepositor
$query->andWhere('e.status = 1');
$query->andWhere(':now <= e.propertyNoveltyExpirationDate')
->setParameter('now', new \DateTime()) ;
$query->orderBy('e.createdAt', 'DESC');

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

Loading…
Cancel
Save