Example #1
0
 /**
  * @param ChildRatingHeaders $ratingHeaders The ChildRatingHeaders object to add.
  */
 protected function doAddRatingHeaders(ChildRatingHeaders $ratingHeaders)
 {
     $this->collRatingHeaderss[] = $ratingHeaders;
     $ratingHeaders->setRigs($this);
 }
Example #2
0
 /**
  * Filter the query by a related \RatingHeaders object
  *
  * @param \RatingHeaders|ObjectCollection $ratingHeaders the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildGamesQuery The current query, for fluid interface
  */
 public function filterByRatingHeaders($ratingHeaders, $comparison = null)
 {
     if ($ratingHeaders instanceof \RatingHeaders) {
         return $this->addUsingAlias(GamesTableMap::COL_ID, $ratingHeaders->getGameId(), $comparison);
     } elseif ($ratingHeaders instanceof ObjectCollection) {
         return $this->useRatingHeadersQuery()->filterByPrimaryKeys($ratingHeaders->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByRatingHeaders() only accepts arguments of type \\RatingHeaders or Collection');
     }
 }
Example #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildRatingHeaders $ratingHeaders Object to remove from the list of results
  *
  * @return $this|ChildRatingHeadersQuery The current query, for fluid interface
  */
 public function prune($ratingHeaders = null)
 {
     if ($ratingHeaders) {
         $this->addUsingAlias(RatingHeadersTableMap::COL_ID, $ratingHeaders->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related \RatingHeaders object
  *
  * @param \RatingHeaders|ObjectCollection $ratingHeaders 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 ChildRatingCategoryValuesQuery The current query, for fluid interface
  */
 public function filterByRatingHeaders($ratingHeaders, $comparison = null)
 {
     if ($ratingHeaders instanceof \RatingHeaders) {
         return $this->addUsingAlias(RatingCategoryValuesTableMap::COL_RATING_HEADER_ID, $ratingHeaders->getId(), $comparison);
     } elseif ($ratingHeaders instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(RatingCategoryValuesTableMap::COL_RATING_HEADER_ID, $ratingHeaders->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByRatingHeaders() only accepts arguments of type \\RatingHeaders or Collection');
     }
 }
Example #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->aRatingHeaders) {
         $this->aRatingHeaders->removeRatingCategoryValues($this);
     }
     if (null !== $this->aRatingCategories) {
         $this->aRatingCategories->removeRatingCategoryValues($this);
     }
     if (null !== $this->aRatingCategoryOptions) {
         $this->aRatingCategoryOptions->removeRatingCategoryValues($this);
     }
     $this->id = null;
     $this->rating_header_id = null;
     $this->rating_category_id = null;
     $this->rating_category_option_id = null;
     $this->original_value = null;
     $this->original_weighted_value = null;
     $this->comments = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }