Step 12: Enable voting

Setup Classes(设置类)

The FOSCommentBundle supports both Doctrine ODM (mongodb) and Doctrine ORM bydefault. However, you must provide a concrete Vote class. Follow the appropriate instructions to set up the classes:

FOSCommentBundle缺省支持Doctrine ODM (mongodb) 和 Doctrine ORM 。然而,您必须提供一个具体的Vote类。根据相应的指示设置类:

Integration with fosuserbundle(与FOSUserBundle功能包集成)

That is it!

Return to the index.

返回到指南索引页