public function getPaymentJournalsJoinAcademicCost($criteria = null, $con = null) { include_once 'lib/model/om/BasePaymentJournalPeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collPaymentJournals === null) { if ($this->isNew()) { $this->collPaymentJournals = array(); } else { $criteria->add(PaymentJournalPeer::ACADEMIC_PROCESS_ID, $this->getId()); $this->collPaymentJournals = PaymentJournalPeer::doSelectJoinAcademicCost($criteria, $con); } } else { $criteria->add(PaymentJournalPeer::ACADEMIC_PROCESS_ID, $this->getId()); if (!isset($this->lastPaymentJournalCriteria) || !$this->lastPaymentJournalCriteria->equals($criteria)) { $this->collPaymentJournals = PaymentJournalPeer::doSelectJoinAcademicCost($criteria, $con); } } $this->lastPaymentJournalCriteria = $criteria; return $this->collPaymentJournals; }