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