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