public function getVAcaCostElsesJoinBankAccount($criteria = null, $con = null) { include_once 'lib/model/om/BaseVAcaCostElsePeer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collVAcaCostElses === null) { if ($this->isNew()) { $this->collVAcaCostElses = array(); } else { $criteria->add(VAcaCostElsePeer::PAYER_TYPE_ID, $this->getId()); $this->collVAcaCostElses = VAcaCostElsePeer::doSelectJoinBankAccount($criteria, $con); } } else { $criteria->add(VAcaCostElsePeer::PAYER_TYPE_ID, $this->getId()); if (!isset($this->lastVAcaCostElseCriteria) || !$this->lastVAcaCostElseCriteria->equals($criteria)) { $this->collVAcaCostElses = VAcaCostElsePeer::doSelectJoinBankAccount($criteria, $con); } } $this->lastVAcaCostElseCriteria = $criteria; return $this->collVAcaCostElses; }