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 72bddba commit c366c05Copy full SHA for c366c05
src/AppBundle/Repository/PostRepository.php
@@ -38,8 +38,9 @@ public function findLatest($page = 1)
38
{
39
$query = $this->getEntityManager()
40
->createQuery('
41
- SELECT p, t
+ SELECT p, a, t
42
FROM AppBundle:Post p
43
+ JOIN p.author a
44
LEFT JOIN p.tags t
45
WHERE p.publishedAt <= :now
46
ORDER BY p.publishedAt DESC
0 commit comments