原文出处:
原文作者:
授权许可:
翻译人员:FireHare
校对人员:
适用版本:FOSCommentBundle 2.0.5
文章状态:草译阶段
Step 2b: Setup MongoDB mapping
The MongoDB implementation does not provide a concrete Comment class for your use,you must create one:
MongoDB实现并不提供为您所用的具体评论类,您必须要创建一个。
Additionally, create the Thread class:
另外,创建线索类:
Configure your application(配置您的应用程序)
In YAML:
使用YAML格式:
# app/config/config.ymlfos_comment: db_driver: mongodb class: model: comment: MyProject\MyBundle\Document\Comment thread: MyProject\MyBundle\Document\Threadassetic: bundles: [ "FOSCommentBundle" ]
Or if you prefer XML:
或者如果您偏好XML:
# app/config/config.xml
Back to the main step(返回主步骤)
.
。