Esempio n. 1
0
 /**
  * Declares an association between this object and a PilotRequest object.
  *
  * @param      PilotRequest $v
  * @return     PilotDate The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setPilotRequest(PilotRequest $v = null)
 {
     if ($v === null) {
         $this->setPilotRequestId(NULL);
     } else {
         $this->setPilotRequestId($v->getId());
     }
     $this->aPilotRequest = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the PilotRequest object, it will not be re-added.
     if ($v !== null) {
         $v->addPilotDate($this);
     }
     return $this;
 }