Skip to content

Commit

Permalink
DOC Close hint block (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 28, 2023
1 parent 387057c commit e947f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/02_Developer_Guides/00_Model/06_SearchFilters.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $players = Player::get()->filterAny([

[hint]
Notice the syntax - to invoke a `SearchFilter` in a `DataList`'s `filter()`/`filterAny()`/`filterByCallback()` or `exclude()`/`excludeAny()` methods, you add a colon after the field name, followed by the name of the filter (excluding the actual word "filter"). e.g. for a `StartsWithFilter`: `'FieldName:StartsWith'`
[hint]
[/hint]

Developers can define their own [SearchFilter](api:SilverStripe\ORM\Filters\SearchFilter) if needing to extend the ORM filter and exclude behaviors.

Expand Down

0 comments on commit e947f45

Please sign in to comment.