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