mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixed example code in docs/en/topics/datamodel.md.
This commit is contained in:
parent
eb82094c45
commit
6adc39e289
@ -262,7 +262,7 @@ other words, it will return all administrators.
|
||||
|
||||
:::php
|
||||
$members = Member::get()->filter(array(
|
||||
'Groups.Permissions.Code' => 'ADMIN',
|
||||
'Groups.Permissions.Code:ExactMatch' => 'ADMIN',
|
||||
));
|
||||
|
||||
Note that we are just joining these tables to filter the records. Even if a member is in more than 1 administrator
|
||||
|
Loading…
x
Reference in New Issue
Block a user