mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix syntax error in DataList docs
This commit is contained in:
parent
84cb596ab8
commit
daf995da63
@ -470,9 +470,9 @@ $players = Player::get()->exclude('FirstName', 'Sam');
|
||||
Remove both Sam and Sig..
|
||||
|
||||
```php
|
||||
$players = Player::get()->exclude(
|
||||
$players = Player::get()->exclude([
|
||||
'FirstName' => ['Sam','Sig']
|
||||
);
|
||||
]);
|
||||
```
|
||||
|
||||
`Exclude` follows the same pattern as filter, so for removing only Sam Minnée from the list:
|
||||
|
Loading…
Reference in New Issue
Block a user