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