public function getProjectApplicationsJoinsfGuardUserRelatedByOwnerId($criteria = null, $con = null) { include_once 'lib/model/om/BaseProjectApplicationPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collProjectApplications === null) { if ($this->isNew()) { $this->collProjectApplications = array(); } else { $criteria->add(ProjectApplicationPeer::DEPARTMENT_ID, $this->getId()); $this->collProjectApplications = ProjectApplicationPeer::doSelectJoinsfGuardUserRelatedByOwnerId($criteria, $con); } } else { $criteria->add(ProjectApplicationPeer::DEPARTMENT_ID, $this->getId()); if (!isset($this->lastProjectApplicationCriteria) || !$this->lastProjectApplicationCriteria->equals($criteria)) { $this->collProjectApplications = ProjectApplicationPeer::doSelectJoinsfGuardUserRelatedByOwnerId($criteria, $con); } } $this->lastProjectApplicationCriteria = $criteria; return $this->collProjectApplications; }