예제 #1
0
 /**
  * Declares an association between this object and a Zone object.
  *
  * @param      Zone $v
  * @return     ZoneHasRoom 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->addZoneHasRoom($this);
     }
     return $this;
 }