We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 306c466 commit a5a0974Copy full SHA for a5a0974
src/AppBundle/Repository/PostRepository.php
@@ -28,8 +28,8 @@ public function findLatest($limit = Post::NUM_ITEMS)
28
{
29
return $this
30
->createQueryBuilder('p')
31
- ->select('p')
32
- ->where('p.publishedAt <= :now')->setParameter('now', new \DateTime())
+ ->where('p.publishedAt <= :now')
+ ->setParameter('now', new \DateTime())
33
->orderBy('p.publishedAt', 'DESC')
34
->setMaxResults($limit)
35
->getQuery()
0 commit comments