diff options
Diffstat (limited to 'src/model/Model.php')
| -rw-r--r-- | src/model/Model.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/Model.php b/src/model/Model.php index 1054d57..15ff12a 100644 --- a/src/model/Model.php +++ b/src/model/Model.php | |||
| @@ -9,6 +9,7 @@ declare(strict_types=1); | |||
| 9 | use Doctrine\ORM\EntityManager; | 9 | use Doctrine\ORM\EntityManager; |
| 10 | use App\Entity\Page; | 10 | use App\Entity\Page; |
| 11 | use App\Entity\Node; | 11 | use App\Entity\Node; |
| 12 | use App\Entity\Presentation; | ||
| 12 | use Doctrine\ORM\QueryBuilder; | 13 | use Doctrine\ORM\QueryBuilder; |
| 13 | use Symfony\Component\HttpFoundation\Request; | 14 | use Symfony\Component\HttpFoundation\Request; |
| 14 | 15 | ||
| @@ -60,7 +61,7 @@ class Model | |||
| 60 | 61 | ||
| 61 | foreach($bulk_data as $parent_block){ | 62 | foreach($bulk_data as $parent_block){ |
| 62 | // groupes d'articles triés par bloc, permet de paginer par bloc | 63 | // groupes d'articles triés par bloc, permet de paginer par bloc |
| 63 | if(Blocks::hasPresentation($parent_block->getName())){ // = post_block ou news_block | 64 | if(Presentation::hasPresentation($parent_block->getName())){ // = post_block ou news_block |
| 64 | $bulk_data = array_merge($bulk_data, $this->getNextArticles($parent_block, $request)[0]); | 65 | $bulk_data = array_merge($bulk_data, $this->getNextArticles($parent_block, $request)[0]); |
| 65 | } | 66 | } |
| 66 | 67 | ||
