Skip to content

Commit 555d164

Browse files
authored
Merge pull request #2035 from doctrine/1.2-yaml-index-order
Fix `order` syntax for YAML index examples
2 parents 821404c + dd00d8a commit 555d164

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

docs/en/reference/indexes.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ For your convenience you can quickly specify a unique index with
136136
fields:
137137
username:
138138
unique: true
139-
order: true
139+
order: asc
140140
141141
If you want to specify an index that consists of multiple fields
142142
you can specify them on the class doc block:
@@ -191,10 +191,8 @@ you can specify them on the class doc block:
191191
options:
192192
unique: true
193193
keys:
194-
accountId:
195-
order: asc
196-
username:
197-
order: asc
194+
accountId: asc
195+
username: asc
198196
199197
To specify multiple indexes you must use the ``@Indexes``
200198
annotation:
@@ -249,12 +247,10 @@ annotation:
249247
indexes:
250248
accountId:
251249
keys:
252-
accountId:
253-
order: asc
250+
accountId: asc
254251
username:
255252
keys:
256-
username:
257-
order: asc
253+
username: asc
258254
259255
Embedded Indexes
260256
----------------

0 commit comments

Comments
 (0)