From 53ac59e032dfbb4e1037ce70745c3a7db54f496d Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 5 Nov 2017 00:46:54 +0300 Subject: [PATCH] Public feed post query fix (ORDER BY DESC). --- .../Bundle/PointToolsBundle/Repository/Blogs/PostRepository.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/PostRepository.php b/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/PostRepository.php index 0c7cc71..bf4a147 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/PostRepository.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/PostRepository.php @@ -42,6 +42,7 @@ class PostRepository extends EntityRepository ->leftJoin('p.files', 'pf') ->where('p.private = FALSE') ->andWhere('pa.public = TRUE') + ->orderBy('p.createdAt', 'desc') ; } } \ No newline at end of file