Explorar o código

Merge pull request #286 from calumbrodie/patch-1

Added orderBy to child mapping in .yml entity mapping example.
Gediminas Morkevicius %!s(int64=13) %!d(string=hai) anos
pai
achega
17e7c9f75f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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>