Skip to content

Commit

Permalink
DbUserGroupBackend: Add case insensitive filter columns group' and
Browse files Browse the repository at this point in the history
…parent'

refs #8826
  • Loading branch information
Johannes Meyer committed May 5, 2015
1 parent 37e47f0 commit de68d78
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -15,13 +15,22 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa
*/
protected $queryColumns = array(
'group' => array(
'group' => 'name COLLATE utf8_general_ci',
'group_name' => 'name',
'parent' => 'parent COLLATE utf8_general_ci',
'parent_name' => 'parent',
'created_at' => 'UNIX_TIMESTAMP(ctime)',
'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
*
Expand Down

0 comments on commit de68d78

Please sign in to comment.