Skip to content

Commit d3f4dae

Browse files
authored
Merge pull request #42 from Aurlin/master
Missing doc about custom primary key
2 parents ae416cb + ded44b9 commit d3f4dae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ In published config file add descriptions for models which need to be indexed, f
6363
]
6464
],
6565

66+
namespace\ModelWithCustomPrimaryKey::class => [
67+
// You can also define your primary key (if you use something else than "id")
68+
'primary_key' => 'my_custom_field_name',
69+
'fields' => [
70+
'username', 'short_description', // fields for indexing
71+
]
72+
],
73+
6674
// ...
6775

6876
],

0 commit comments

Comments
 (0)