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!
本文转自 firehare 51CTO博客,原文链接:http://blog.51cto.com/firehare/1259407,如需转载请自行联系原作者