コード例 #1
0
ファイル: BaseSubscription.php プロジェクト: jfesquet/tempos
 /**
  * Declares an association between this object and a Zone object.
  *
  * @param      Zone $v
  * @return     Subscription The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setZone(Zone $v = null)
 {
     if ($v === null) {
         $this->setZoneId(NULL);
     } else {
         $this->setZoneId($v->getId());
     }
     $this->aZone = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Zone object, it will not be re-added.
     if ($v !== null) {
         $v->addSubscription($this);
     }
     return $this;
 }