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);
 }
 /**
  * Filter the query by a related \Platform object
  *
  * @param \Platform|ObjectCollection $platform 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 ChildRatingHeaderQuery The current query, for fluid interface
  */
 public function filterByPlatform($platform, $comparison = null)
 {
     if ($platform instanceof \Platform) {
         return $this->addUsingAlias(RatingHeaderTableMap::COL_PLATFORM_ID, $platform->getId(), $comparison);
     } elseif ($platform instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(RatingHeaderTableMap::COL_PLATFORM_ID, $platform->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByPlatform() only accepts arguments of type \\Platform or Collection');
     }
 }
Example #3
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 #4
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);
 }
Example #5
0
 /**
  * Exclude object from result
  *
  * @param   ChildPlatform $platform Object to remove from the list of results
  *
  * @return $this|ChildPlatformQuery The current query, for fluid interface
  */
 public function prune($platform = null)
 {
     if ($platform) {
         $this->addUsingAlias(PlatformTableMap::COL_ID, $platform->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }