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