/** * Get the associated Game object * * @param PropelPDO Optional Connection object. * @return Game The associated Game object. * @throws PropelException */ public function getGame(PropelPDO $con = null) { if ($this->aGame === null && $this->current_game_id !== null) { $c = new Criteria(GamePeer::DATABASE_NAME); $c->add(GamePeer::ID, $this->current_game_id); $this->aGame = GamePeer::doSelectOne($c, $con); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aGame->addUsers($this); */ } return $this->aGame; }