1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Merge pull request #105 from iampersistent/patch-1

Add xml code block for OrderBy
This commit is contained in:
Guilherme Blanco 2012-06-20 07:03:41 -07:00
commit 86884a33f5

View File

@ -27,6 +27,18 @@ can specify the ``@OrderBy`` in the following way:
private $groups;
}
.. code-block:: xml
<doctrine-mapping>
<entity name="User">
<many-to-many field="groups" target-entity="Group">
<order-by>
<order-by-field name="name" direction="ASC" />
</order-by>
</many-to-many>
</entity>
</doctrine-mapping>
The DQL Snippet in OrderBy is only allowed to consist of
unqualified, unquoted field names and of an optional ASC/DESC
positional statement. Multiple Fields are separated by a comma (,).