Skip to content

Commit 3db960a

Browse files
committed
docs
1 parent 843e13f commit 3db960a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/docs/4.0/search/search.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,14 @@ GET: /api/restify/users?is_active=true
159159
You can implement a match filter definition, and specify for example related repository:
160160

161161
```php
162-
public static $match = [
162+
protected static function booted()
163+
static::$match = [
163164
'title' => 'string',
164165
'user_id' => MatchFilter::make()
165166
->setType('int')
166167
->setRelatedRepositoryKey(UserRepository::uriKey()),
167-
];
168+
];
169+
}
168170
```
169171
When you will list this filter (with `posts/filters?only=matches`), you will get:
170172

0 commit comments

Comments
 (0)