/** * Get the associated CpCities object * * @param PropelPDO Optional Connection object. * @return CpCities The associated CpCities object. * @throws PropelException */ public function getCpCities(PropelPDO $con = null) { if ($this->aCpCities === null && $this->city !== null) { $c = new Criteria(CpCitiesPeer::DATABASE_NAME); $c->add(CpCitiesPeer::ID, $this->city); $this->aCpCities = CpCitiesPeer::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->aCpCities->addUserProfiles($this); */ } return $this->aCpCities; }