コード例 #1
0
ファイル: BaseCpStates.php プロジェクト: broschb/cyclebrain
 /**
  * Declares an association between this object and a CpCountries object.
  *
  * @param      CpCountries $v
  * @return     CpStates The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setCpCountries(CpCountries $v = null)
 {
     if ($v === null) {
         $this->setCountryId(NULL);
     } else {
         $this->setCountryId($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->addCpStates($this);
     }
     return $this;
 }