The FOSCommentBundle supports both Doctrine ODM (mongodb) and Doctrine ORM by default. However, you must provide a concrete Comment and Thread class. Follow the appropriate instructions to set up the classes:
When you're done. Continue with importing the routing: Step 3: Importing FOSCommentBundle routing.