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