コード例 #1
0
ファイル: Country.php プロジェクト: keeko/core
 /**
  * Declares an association between this object and a ChildContinent object.
  *
  * @param  ChildContinent $v
  * @return $this|\keeko\core\model\Country The current object (for fluent API support)
  * @throws PropelException
  */
 public function setContinent(ChildContinent $v = null)
 {
     if ($v === null) {
         $this->setContinentId(NULL);
     } else {
         $this->setContinentId($v->getId());
     }
     $this->aContinent = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildContinent object, it will not be re-added.
     if ($v !== null) {
         $v->addCountry($this);
     }
     return $this;
 }