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