Skip to content

Commit 8848150

Browse files
authored
doc: update defautl-order.md (#1195)
1 parent d41adc2 commit 8848150

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

core/default-order.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,26 @@ class Book
8686
// ...
8787
}
8888
```
89+
90+
Another possibility is to apply the default order for a specific collection operation, which will override the global default order configuration.
91+
92+
```
93+
/**
94+
* collectionOperations={
95+
* "get",
96+
* "get_desc_custom"={"method"="GET", "path"="custom_collection_desc_foos", "order"={"name"="DESC"}},
97+
* "get_asc_custom"={"method"="GET", "path"="custom_collection_asc_foos", "order"={ "name"="ASC"}},
98+
* }
99+
*/
100+
class Book
101+
{
102+
// ...
103+
104+
/**
105+
* @var string
106+
*/
107+
public $name;
108+
109+
// ...
110+
}
111+
```

0 commit comments

Comments
 (0)