/** * Counts all associated ClassRegistrations * @return int */ public function CountClassRegistrations() { if (is_null($this->intSignupFormId)) { return 0; } return ClassRegistration::CountByClassMeetingId($this->intSignupFormId); }