/** * Counts all associated ParentPagerAttendantHistories * @return int */ public function CountParentPagerAttendantHistories() { if (is_null($this->intId)) { return 0; } return ParentPagerAttendantHistory::CountByParentPagerStationId($this->intId); }