/** * Counts all associated NarroUserRolesAsUser * @return int */ public function CountNarroUserRolesAsUser() { if (is_null($this->intUserId)) { return 0; } return NarroUserRole::CountByUserId($this->intUserId); }