Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Dec 16, 2020
1 parent 843e13f commit 3db960a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/docs/4.0/search/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,14 @@ GET: /api/restify/users?is_active=true
You can implement a match filter definition, and specify for example related repository:

```php
public static $match = [
protected static function booted()
static::$match = [
'title' => 'string',
'user_id' => MatchFilter::make()
->setType('int')
->setRelatedRepositoryKey(UserRepository::uriKey()),
];
];
}
```
When you will list this filter (with `posts/filters?only=matches`), you will get:

Expand Down

0 comments on commit 3db960a

Please sign in to comment.