public function getsfSimpleForumTopicsJoinsfSimpleForumPost($criteria = null, $con = null) { include_once 'lib/model/om/BasesfSimpleForumTopicPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collsfSimpleForumTopics === null) { if ($this->isNew()) { $this->collsfSimpleForumTopics = array(); } else { $criteria->add(sfSimpleForumTopicPeer::USER_ID, $this->getId()); $this->collsfSimpleForumTopics = sfSimpleForumTopicPeer::doSelectJoinsfSimpleForumPost($criteria, $con); } } else { $criteria->add(sfSimpleForumTopicPeer::USER_ID, $this->getId()); if (!isset($this->lastsfSimpleForumTopicCriteria) || !$this->lastsfSimpleForumTopicCriteria->equals($criteria)) { $this->collsfSimpleForumTopics = sfSimpleForumTopicPeer::doSelectJoinsfSimpleForumPost($criteria, $con); } } $this->lastsfSimpleForumTopicCriteria = $criteria; return $this->collsfSimpleForumTopics; }