소스 검색

[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: