public function getVSppsJoinStudent($criteria = null, $con = null) { include_once 'lib/model/om/BaseVSppPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collVSpps === null) { if ($this->isNew()) { $this->collVSpps = array(); } else { $criteria->add(VSppPeer::ACADEMIC_COST_ID, $this->getId()); $this->collVSpps = VSppPeer::doSelectJoinStudent($criteria, $con); } } else { $criteria->add(VSppPeer::ACADEMIC_COST_ID, $this->getId()); if (!isset($this->lastVSppCriteria) || !$this->lastVSppCriteria->equals($criteria)) { $this->collVSpps = VSppPeer::doSelectJoinStudent($criteria, $con); } } $this->lastVSppCriteria = $criteria; return $this->collVSpps; }