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