浏览代码

[documentation] fixed yaml mapping example for tree repository

gediminasm 14 年之前
父节点
当前提交
8c48066132
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      doc/tree.md

+ 2 - 0
doc/tree.md

@@ -214,6 +214,7 @@ Yaml mapped Category: **/mapping/yaml/Entity.Category.dcm.yml**
     ---
     Entity\Category:
       type: entity
+      repositoryClass: Gedmo\Tree\Entity\Repository\NestedTreeRepository
       table: categories
       gedmo:
         tree:
@@ -579,6 +580,7 @@ Yaml mapped Category: **/mapping/yaml/Entity.Category.dcm.yml**
     ---
     Entity\Category:
       type: entity
+      repositoryClass: Gedmo\Tree\Entity\Repository\NestedTreeRepository
       table: categories
       gedmo:
         tree: