Browse Source

[documentation] fixed yaml mapping example for tree repository

gediminasm 14 năm trước cách đây
mục cha
commit
8c48066132
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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: