Merge pull request #693 from jakr/trac7733_v2

Temporary fix to example code in docs/en/topics/datamodel.md (Ticket 7733).
This commit is contained in:
Will Rossiter 2012-08-03 14:28:06 -07:00
commit daceab2dcd

View File

@ -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