We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38ffdfc + d724042 commit 83aaf9fCopy full SHA for 83aaf9f
src/Document/Post.php
@@ -26,6 +26,7 @@
26
*/
27
#[ODM\Document(repositoryClass: PostRepository::class)]
28
#[ODM\UniqueIndex(keys: ['slug' => 1], options: ['unique' => true])]
29
+#[ODM\Index(['order' => 'desc', 'tags.name' => 'asc'])]
30
#[Unique(fields: ['slug'], message: 'post.slug_unique', errorPath: 'title')]
31
class Post
32
{
0 commit comments