Example #1
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aPlatform) {
         $this->aPlatform->removeGamePlatform($this);
     }
     if (null !== $this->aGame) {
         $this->aGame->removeGamePlatform($this);
     }
     $this->game_id = null;
     $this->platform_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Example #2
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aGame) {
         $this->aGame->removeGameLink($this);
     }
     if (null !== $this->aGameLinkType) {
         $this->aGameLinkType->removeGameLink($this);
     }
     $this->id = null;
     $this->game_id = null;
     $this->game_link_type_id = null;
     $this->value = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Example #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildGame $game Object to remove from the list of results
  *
  * @return $this|ChildGameQuery The current query, for fluid interface
  */
 public function prune($game = null)
 {
     if ($game) {
         $this->addUsingAlias(GameTableMap::COL_ID, $game->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #4
0
 /**
  * @param ChildGame $gameRelatedByDeveloperId The ChildGame object to add.
  */
 protected function doAddGameRelatedByDeveloperId(ChildGame $gameRelatedByDeveloperId)
 {
     $this->collGamesRelatedByDeveloperId[] = $gameRelatedByDeveloperId;
     $gameRelatedByDeveloperId->setCompanyRelatedByDeveloperId($this);
 }
Example #5
0
 /**
  * Filter the query by a related \Game object
  *
  * @param \Game|ObjectCollection $game The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildGameLinkQuery The current query, for fluid interface
  */
 public function filterByGame($game, $comparison = null)
 {
     if ($game instanceof \Game) {
         return $this->addUsingAlias(GameLinkTableMap::COL_GAME_ID, $game->getId(), $comparison);
     } elseif ($game instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(GameLinkTableMap::COL_GAME_ID, $game->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByGame() only accepts arguments of type \\Game or Collection');
     }
 }
Example #6
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aGame) {
         $this->aGame->removeRatingHeader($this);
     }
     if (null !== $this->aPlatform) {
         $this->aPlatform->removeRatingHeader($this);
     }
     $this->id = null;
     $this->game_id = null;
     $this->platform_id = null;
     $this->created = null;
     $this->updated = null;
     $this->comments = null;
     $this->score = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Example #7
0
 /**
  * Filter the query by a related \Game object
  *
  * @param \Game|ObjectCollection $game the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildCompanyQuery The current query, for fluid interface
  */
 public function filterByGameRelatedByDeveloperId($game, $comparison = null)
 {
     if ($game instanceof \Game) {
         return $this->addUsingAlias(CompanyTableMap::COL_ID, $game->getDeveloperId(), $comparison);
     } elseif ($game instanceof ObjectCollection) {
         return $this->useGameRelatedByDeveloperIdQuery()->filterByPrimaryKeys($game->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByGameRelatedByDeveloperId() only accepts arguments of type \\Game or Collection');
     }
 }
Example #8
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aGame) {
         $this->aGame->removeUserReview($this);
     }
     if (null !== $this->aPlatform) {
         $this->aPlatform->removeUserReview($this);
     }
     if (null !== $this->aUser) {
         $this->aUser->removeUserReview($this);
     }
     if (null !== $this->aRating) {
         $this->aRating->removeUserReview($this);
     }
     if (null !== $this->aRig) {
         $this->aRig->removeUserReview($this);
     }
     $this->id = null;
     $this->game_id = null;
     $this->platform_id = null;
     $this->user_id = null;
     $this->rig_id = null;
     $this->rating_id = null;
     $this->review = null;
     $this->upvotes = null;
     $this->downvotes = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }