/** * Counts all associated NarroLogsAsProject * @return int */ public function CountNarroLogsAsProject() { if (is_null($this->intProjectId)) { return 0; } return NarroLog::CountByProjectId($this->intProjectId); }