DbUserGroupBackend: Add case insensitive filter columns `group' and `parent'

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-05 09:34:49 +02:00
parent 37e47f0d3f
commit de68d78938
1 changed files with 9 additions and 0 deletions

View File

@ -15,13 +15,22 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa
*/ */
protected $queryColumns = array( protected $queryColumns = array(
'group' => array( 'group' => array(
'group' => 'name COLLATE utf8_general_ci',
'group_name' => 'name', 'group_name' => 'name',
'parent' => 'parent COLLATE utf8_general_ci',
'parent_name' => 'parent', 'parent_name' => 'parent',
'created_at' => 'UNIX_TIMESTAMP(ctime)', 'created_at' => 'UNIX_TIMESTAMP(ctime)',
'last_modified' => 'UNIX_TIMESTAMP(mtime)' 'last_modified' => 'UNIX_TIMESTAMP(mtime)'
) )
); );
/**
* The columns which are not permitted to be queried
*
* @var array
*/
protected $filterColumns = array('group', 'parent');
/** /**
* The default sort rules to be applied on a query * The default sort rules to be applied on a query
* *