/** * Get the associated Reservation object * * @param PropelPDO Optional Connection object. * @return Reservation The associated Reservation object. * @throws PropelException */ public function getReservation(PropelPDO $con = null) { if ($this->aReservation === null && $this->reservation_id !== null) { $c = new Criteria(ReservationPeer::DATABASE_NAME); $c->add(ReservationPeer::ID, $this->reservation_id); $this->aReservation = ReservationPeer::doSelectOne($c, $con); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aReservation->addReservationOtherMemberss($this); */ } return $this->aReservation; }