Find Users in a particular Group by group name with Symfony plugin sfDoctrineGuard


/ Published in: PHP
Save to your folder(s)

This shows one way to get a list of users in a particular group using DQL


Copy this code and paste it in your HTML
  1. $q = $this->createQuery('u')
  2. ->innerJoin('u.Groups g')
  3. ->where('g.name IN ("' . sfGuardGroup::NAME_PATIENT . '")')
  4. ;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.