public function getGroupIds()
    {
        $ids = array();

        /* @var $group \Sokil\UserBundle\Entity\Group */
        foreach ($this->getGroups() as $group) {
            $ids[] = $group->getId();
        }

        return $ids;
    }
public function getGroupIds()
    {
        $ids = array();

        /* @var $group \Sokil\UserBundle\Entity\Group */
        foreach ($this->getGroups() as $group) {
            $ids[] = $group->getId();
        }

        return $ids;
    }
public function getGroupIds ( ) { $ ids = array ( ) ; /* @var $group \Sokil\UserBundle\Entity\Group */ foreach ( $ this -> getGroups ( ) as $ group ) { $ ids [ ] = $ group -> getId ( ) ; } return $ ids ; }
Get list of related group ids

@return int[]
Get list of related group ids