Exemplo n.º 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->aPlatforms) {
         $this->aPlatforms->removeGamePlatforms($this);
     }
     if (null !== $this->aGames) {
         $this->aGames->removeGamePlatforms($this);
     }
     $this->game_id = null;
     $this->platform_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Exemplo n.º 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->aGames) {
         $this->aGames->removeGameLinks($this);
     }
     if (null !== $this->aGameLinkTypes) {
         $this->aGameLinkTypes->removeGameLinks($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);
 }
Exemplo n.º 3
0
 /**
  * Filter the query by a related \Games object
  *
  * @param \Games|ObjectCollection $games 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 ChildUserReviewsQuery The current query, for fluid interface
  */
 public function filterByGames($games, $comparison = null)
 {
     if ($games instanceof \Games) {
         return $this->addUsingAlias(UserReviewsTableMap::COL_GAME_ID, $games->getId(), $comparison);
     } elseif ($games instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(UserReviewsTableMap::COL_GAME_ID, $games->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByGames() only accepts arguments of type \\Games or Collection');
     }
 }
Exemplo n.º 4
0
 /**
  * @param ChildGames $gamesRelatedByDeveloperId The ChildGames object to add.
  */
 protected function doAddGamesRelatedByDeveloperId(ChildGames $gamesRelatedByDeveloperId)
 {
     $this->collGamessRelatedByDeveloperId[] = $gamesRelatedByDeveloperId;
     $gamesRelatedByDeveloperId->setCompaniesRelatedByDeveloperId($this);
 }
Exemplo n.º 5
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->aGames) {
         $this->aGames->removeUserReviews($this);
     }
     if (null !== $this->aPlatforms) {
         $this->aPlatforms->removeUserReviews($this);
     }
     if (null !== $this->aUser) {
         $this->aUser->removeUserReviews($this);
     }
     if (null !== $this->aRatings) {
         $this->aRatings->removeUserReviews($this);
     }
     $this->id = null;
     $this->game_id = null;
     $this->platform_id = null;
     $this->user_id = null;
     $this->rig_id = null;
     $this->rating = null;
     $this->review = null;
     $this->upvotes = null;
     $this->downvotes = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Exemplo n.º 6
0
 /**
  * Exclude object from result
  *
  * @param   ChildGames $games Object to remove from the list of results
  *
  * @return $this|ChildGamesQuery The current query, for fluid interface
  */
 public function prune($games = null)
 {
     if ($games) {
         $this->addUsingAlias(GamesTableMap::COL_ID, $games->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Exemplo n.º 7
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->aGames) {
         $this->aGames->removeRatingHeaders($this);
     }
     if (null !== $this->aUser) {
         $this->aUser->removeRatingHeaders($this);
     }
     if (null !== $this->aRigs) {
         $this->aRigs->removeRatingHeaders($this);
     }
     if (null !== $this->aPlatforms) {
         $this->aPlatforms->removeRatingHeaders($this);
     }
     $this->id = null;
     $this->game_id = null;
     $this->user_id = null;
     $this->game_platform_id = null;
     $this->rig_id = null;
     $this->created = null;
     $this->updated = null;
     $this->upvotes = null;
     $this->downvotes = null;
     $this->comments = null;
     $this->score = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Exemplo n.º 8
0
 /**
  * Filter the query by a related \Games object
  *
  * @param \Games|ObjectCollection $games the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildCompaniesQuery The current query, for fluid interface
  */
 public function filterByGamesRelatedByDeveloperId($games, $comparison = null)
 {
     if ($games instanceof \Games) {
         return $this->addUsingAlias(CompaniesTableMap::COL_ID, $games->getDeveloperId(), $comparison);
     } elseif ($games instanceof ObjectCollection) {
         return $this->useGamesRelatedByDeveloperIdQuery()->filterByPrimaryKeys($games->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByGamesRelatedByDeveloperId() only accepts arguments of type \\Games or Collection');
     }
 }