/** * Filter the query by a related \RatingHeader object * * @param \RatingHeader|ObjectCollection $ratingHeader the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildGameQuery The current query, for fluid interface */ public function filterByRatingHeader($ratingHeader, $comparison = null) { if ($ratingHeader instanceof \RatingHeader) { return $this->addUsingAlias(GameTableMap::COL_ID, $ratingHeader->getGameId(), $comparison); } elseif ($ratingHeader instanceof ObjectCollection) { return $this->useRatingHeaderQuery()->filterByPrimaryKeys($ratingHeader->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRatingHeader() only accepts arguments of type \\RatingHeader or Collection'); } }
/** * @param ChildRatingHeader $ratingHeader The ChildRatingHeader object to add. */ protected function doAddRatingHeader(ChildRatingHeader $ratingHeader) { $this->collRatingHeaders[] = $ratingHeader; $ratingHeader->setGame($this); }
/** * Filter the query by a related \RatingHeader object * * @param \RatingHeader|ObjectCollection $ratingHeader 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 ChildRatingValueQuery The current query, for fluid interface */ public function filterByRatingHeader($ratingHeader, $comparison = null) { if ($ratingHeader instanceof \RatingHeader) { return $this->addUsingAlias(RatingValueTableMap::COL_RATING_HEADER_ID, $ratingHeader->getId(), $comparison); } elseif ($ratingHeader instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RatingValueTableMap::COL_RATING_HEADER_ID, $ratingHeader->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRatingHeader() only accepts arguments of type \\RatingHeader or Collection'); } }
/** * Exclude object from result * * @param ChildRatingHeader $ratingHeader Object to remove from the list of results * * @return $this|ChildRatingHeaderQuery The current query, for fluid interface */ public function prune($ratingHeader = null) { if ($ratingHeader) { $this->addUsingAlias(RatingHeaderTableMap::COL_ID, $ratingHeader->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * 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->aCategoryOption) { $this->aCategoryOption->removeRatingValue($this); } if (null !== $this->aRatingHeader) { $this->aRatingHeader->removeRatingValue($this); } $this->rating_header_id = null; $this->category_option_id = null; $this->original_value = null; $this->do_not_score = null; $this->comments = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->applyDefaultValues(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }