/** * Counts all associated ParentPagerChildHistories * @return int */ public function CountParentPagerChildHistories() { if (is_null($this->intId)) { return 0; } return ParentPagerChildHistory::CountByParentPagerPeriodId($this->intId); }