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