Skip to content

Commit 5e64698

Browse files
authored
extend reflection docs
1 parent 5bb37a3 commit 5e64698

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Install using composer.
1010
```json
1111
{
1212
"require": {
13-
"tarantool/mapper": "^2.5.0"
13+
"tarantool/mapper": "^2.7.2"
1414
}
1515
}
1616
```
@@ -346,7 +346,12 @@ class Post extends Repository
346346
{
347347
public $indexes = [
348348
['id'],
349-
['slug']
349+
['slug'],
350+
// extended definition (similar to Space::addIndex params)
351+
// [
352+
// 'fields' => ['year', 'month', 'day'],
353+
// 'unique' => true
354+
// ],
350355
];
351356
}
352357
```

0 commit comments

Comments
 (0)