Parcourir la source

Merge pull request #286 from calumbrodie/patch-1

Added orderBy to child mapping in .yml entity mapping example.
Gediminas Morkevicius il y a 13 ans
Parent
commit
17e7c9f75f
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      doc/tree.md

+ 2 - 0
doc/tree.md

@@ -263,6 +263,8 @@ Entity\Category:
     children:
       targetEntity: Entity\Category
       mappedBy: parent
+      orderBy:
+        lft: ASC
 ```
 
 <a name="xml-mapping"></a>