mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOCS Adding comma to array declaration (#5558)
This commit is contained in:
parent
dad7981332
commit
3870c499d6
@ -19,13 +19,13 @@ An example of a `SearchFilter` in use:
|
||||
:::php
|
||||
// fetch any player that starts with a S
|
||||
$players = Player::get()->filter(array(
|
||||
'FirstName:StartsWith' => 'S'
|
||||
'FirstName:StartsWith' => 'S',
|
||||
'PlayerNumber:GreaterThan' => '10'
|
||||
));
|
||||
|
||||
// to fetch any player that's name contains the letter 'z'
|
||||
$players = Player::get()->filterAny(array(
|
||||
'FirstName:PartialMatch' => 'z'
|
||||
'FirstName:PartialMatch' => 'z',
|
||||
'LastName:PartialMatch' => 'z'
|
||||
));
|
||||
|
||||
@ -50,4 +50,4 @@ The following is a query which will return everyone whose first name starts with
|
||||
|
||||
## API Documentation
|
||||
|
||||
* [api:SearchFilter]
|
||||
* [api:SearchFilter]
|
||||
|
Loading…
Reference in New Issue
Block a user