/** * Counts all associated AssetTransactionCheckoutsAsToUser * @return int */ public function CountAssetTransactionCheckoutsAsToUser() { if (is_null($this->intUserAccountId)) { return 0; } return AssetTransactionCheckout::CountByToUserId($this->intUserAccountId); }