FriendsOfSymfony/FOSCommentBundle — pull request #239 by w33ble (2012-08-10 18:42:53+00:00)
Title: findCommentTreeByCommentId() only returns 1 reply

In our setup, we're using MongoDB and Doctrine's ORM to store comment. When getSingleResult() is called on $comments, the foreach loop used in organiseComments() only operates on the first comment, so the tree only ever contains 1 comment.

By grabbing the first record using toArray(), everything works as expected.