FriendsOfSymfony/FOSMessageBundle — pull request #222 by g123456789l (2014-05-27 15:00:09+00:00)
Title: Prevent lazy loading by joining thread, threadmeta, message, and message...

...meta

I adjusted getParticipantInboxThreadsQueryBuilder, Sent, and Deleted to add two more joined and specifically select all four entities. I use this to reduce the number of Doctrine queries because it would lazy load each message count and who created the last message leading to 3x the number of queries for each message in the inbox. Any concerns ->select('t, tm, p, m, mm')?