Skip to content

Commit

Permalink
Dql: left join instead of join
Browse files Browse the repository at this point in the history
  • Loading branch information
ngodfraind committed Dec 8, 2014
1 parent 4eaeb9b commit 214f28d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Repository/MessageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function findBySubject(Subject $subject, $getQuery = false)
$dql = "
SELECT m, u, pws FROM Claroline\ForumBundle\Entity\Message m
JOIN m.creator u
JOIN u.personalWorkspace pws
LEFT JOIN u.personalWorkspace pws
JOIN m.subject subject
WHERE subject.id = {$subject->getId()}";

Expand Down Expand Up @@ -79,4 +79,4 @@ public function findMessagesWithNoAuthor($executeQuery = true)

return $executeQuery ? $query->getResult() : $query;
}
}
}

0 comments on commit 214f28d

Please sign in to comment.