/** * 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); }
/** * Filter the query by a related \Platforms object * * @param \Platforms|ObjectCollection $platforms 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 filterByPlatforms($platforms, $comparison = null) { if ($platforms instanceof \Platforms) { return $this->addUsingAlias(UserReviewsTableMap::COL_PLATFORM_ID, $platforms->getId(), $comparison); } elseif ($platforms instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(UserReviewsTableMap::COL_PLATFORM_ID, $platforms->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByPlatforms() only accepts arguments of type \\Platforms or Collection'); } }
/** * 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); }
/** * 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); }