Beispiel #1
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');
     }
 }
Beispiel #3
0
 /**
  * Declares an association between this object and a ChildRatingHeaders object.
  *
  * @param  ChildRatingHeaders $v
  * @return $this|\RatingCategoryValues The current object (for fluent API support)
  * @throws PropelException
  */
 public function setRatingHeaders(ChildRatingHeaders $v = null)
 {
     if ($v === null) {
         $this->setRatingHeaderId(NULL);
     } else {
         $this->setRatingHeaderId($v->getId());
     }
     $this->aRatingHeaders = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildRatingHeaders object, it will not be re-added.
     if ($v !== null) {
         $v->addRatingCategoryValues($this);
     }
     return $this;
 }