Fixed example code in docs/en/topics/datamodel.md.

This commit is contained in:
jakr 2012-08-03 11:39:46 +02:00
parent eb82094c45
commit 6adc39e289

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