Example #1
0
 public function getnahoWikiRevisionsJoinnahoWikiContent($criteria = null, $con = null)
 {
     include_once 'plugins/nahoWikiPlugin/lib/model/om/BasenahoWikiRevisionPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collnahoWikiRevisions === null) {
         if ($this->isNew()) {
             $this->collnahoWikiRevisions = array();
         } else {
             $criteria->add(nahoWikiRevisionPeer::PAGE_ID, $this->getId());
             $this->collnahoWikiRevisions = nahoWikiRevisionPeer::doSelectJoinnahoWikiContent($criteria, $con);
         }
     } else {
         $criteria->add(nahoWikiRevisionPeer::PAGE_ID, $this->getId());
         if (!isset($this->lastnahoWikiRevisionCriteria) || !$this->lastnahoWikiRevisionCriteria->equals($criteria)) {
             $this->collnahoWikiRevisions = nahoWikiRevisionPeer::doSelectJoinnahoWikiContent($criteria, $con);
         }
     }
     $this->lastnahoWikiRevisionCriteria = $criteria;
     return $this->collnahoWikiRevisions;
 }