Posted By

cburyta on 01/21/10


symfony sfDoctrineGuard

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


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

 / Published in: PHP

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

  1. $q = $this->createQuery('u')
  2. ->innerJoin('u.Groups g')
  3. ->where(' IN ("' . sfGuardGroup::NAME_PATIENT . '")')
  4. ;

Report this snippet  

You need to login to post a comment.