Ejemplo n.º 1
0
 /**
  * Declares an association between this object and a Zone object.
  *
  * @param      Zone $v
  * @return     Zone The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setZoneRelatedByParentZone(Zone $v = null)
 {
     if ($v === null) {
         $this->setParentZone(NULL);
     } else {
         $this->setParentZone($v->getId());
     }
     $this->aZoneRelatedByParentZone = $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->addZoneRelatedByParentZone($this);
     }
     return $this;
 }