public function getChapterregionsJoinRegion($criteria = null, $con = null) { include_once 'lib/model/om/BaseChapterregionPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collChapterregions === null) { if ($this->isNew()) { $this->collChapterregions = array(); } else { $criteria->add(ChapterregionPeer::CHAPTER_ID, $this->getId()); $this->collChapterregions = ChapterregionPeer::doSelectJoinRegion($criteria, $con); } } else { $criteria->add(ChapterregionPeer::CHAPTER_ID, $this->getId()); if (!isset($this->lastChapterregionCriteria) || !$this->lastChapterregionCriteria->equals($criteria)) { $this->collChapterregions = ChapterregionPeer::doSelectJoinRegion($criteria, $con); } } $this->lastChapterregionCriteria = $criteria; return $this->collChapterregions; }