/** * Declares an association between this object and a CpCountries object. * * @param CpCountries $v * @return UserProfile The current object (for fluent API support) * @throws PropelException */ public function setCpCountries(CpCountries $v = null) { if ($v === null) { $this->setCountry(NULL); } else { $this->setCountry($v->getId()); } $this->aCpCountries = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the CpCountries object, it will not be re-added. if ($v !== null) { $v->addUserProfile($this); } return $this; }