/** * Counts all associated NotificationUserAccounts * @return int */ public function CountNotificationUserAccounts() { if (is_null($this->intNotificationId)) { return 0; } return NotificationUserAccount::CountByNotificationId($this->intNotificationId); }