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