public function getPrimaryGroup()
    {
        $groupSid = preg_replace('/\d+$/', $this->getPrimaryGroupId(), $this->getConvertedSid());

        return $this->query->newInstance()->findBySid($groupSid);
    }
public function getPrimaryGroup()
    {
        $groupSid = preg_replace('/\d+$/', $this->getPrimaryGroupId(), $this->getConvertedSid());

        return $this->query->newInstance()->findBySid($groupSid);
    }
public function getPrimaryGroup ( ) { $ groupSid = preg_replace ( '/\d+$/' , $ this -> getPrimaryGroupId ( ) , $ this -> getConvertedSid ( ) ) ; return $ this -> query -> newInstance ( ) -> findBySid ( $ groupSid ) ; }
Retrieves the primary group of the current user.

@return Model|bool
Retrieves the primary group of the current user .