Exemplo n.º 1
0
 /**
  * Declares an association between this object and a ChildGames object.
  *
  * @param  ChildGames $v
  * @return $this|\GamePlatforms The current object (for fluent API support)
  * @throws PropelException
  */
 public function setGames(ChildGames $v = null)
 {
     if ($v === null) {
         $this->setGameId(NULL);
     } else {
         $this->setGameId($v->getId());
     }
     $this->aGames = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildGames object, it will not be re-added.
     if ($v !== null) {
         $v->addGamePlatforms($this);
     }
     return $this;
 }