/** * Counts all associated GroupParticipations * @return int */ public function CountGroupParticipations() { if (is_null($this->intId)) { return 0; } return GroupParticipation::CountByGroupRoleId($this->intId); }