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