/** * Get the associated UserRides object * * @param PropelPDO Optional Connection object. * @return UserRides The associated UserRides object. * @throws PropelException */ public function getUserRides(PropelPDO $con = null) { if ($this->aUserRides === null && $this->user_ride_id !== null) { $c = new Criteria(UserRidesPeer::DATABASE_NAME); $c->add(UserRidesPeer::USER_RIDE_ID, $this->user_ride_id); $this->aUserRides = UserRidesPeer::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->aUserRides->addUserRideMaps($this); */ } return $this->aUserRides; }