/** * 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); }
/** * Filter the query by a related \GameLinkType object * * @param \GameLinkType|ObjectCollection $gameLinkType 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 filterByGameLinkType($gameLinkType, $comparison = null) { if ($gameLinkType instanceof \GameLinkType) { return $this->addUsingAlias(GameLinkTableMap::COL_GAME_LINK_TYPE_ID, $gameLinkType->getId(), $comparison); } elseif ($gameLinkType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(GameLinkTableMap::COL_GAME_LINK_TYPE_ID, $gameLinkType->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByGameLinkType() only accepts arguments of type \\GameLinkType or Collection'); } }
/** * Exclude object from result * * @param ChildGameLinkType $gameLinkType Object to remove from the list of results * * @return $this|ChildGameLinkTypeQuery The current query, for fluid interface */ public function prune($gameLinkType = null) { if ($gameLinkType) { $this->addUsingAlias(GameLinkTypeTableMap::COL_ID, $gameLinkType->getId(), Criteria::NOT_EQUAL); } return $this; }