/** * Counts all associated SignupPayments * @return int */ public function CountSignupPayments() { if (is_null($this->intId)) { return 0; } return SignupPayment::CountBySignupEntryId($this->intId); }