/** * Counts all associated UserAccountsAsCreatedBy * @return int */ public function CountUserAccountsAsCreatedBy() { if (is_null($this->intUserAccountId)) { return 0; } return UserAccount::CountByCreatedBy($this->intUserAccountId); }