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