Exemplo n.º 1
0
 /**
  * Exclude object from result
  *
  * @param   ChildRatingCategories $ratingCategories Object to remove from the list of results
  *
  * @return $this|ChildRatingCategoriesQuery The current query, for fluid interface
  */
 public function prune($ratingCategories = null)
 {
     if ($ratingCategories) {
         $this->addUsingAlias(RatingCategoriesTableMap::COL_ID, $ratingCategories->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Declares an association between this object and a ChildRatingCategories object.
  *
  * @param  ChildRatingCategories $v
  * @return $this|\RatingCategoryOptions The current object (for fluent API support)
  * @throws PropelException
  */
 public function setRatingCategories(ChildRatingCategories $v = null)
 {
     if ($v === null) {
         $this->setRatingCategoryId(NULL);
     } else {
         $this->setRatingCategoryId($v->getId());
     }
     $this->aRatingCategories = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildRatingCategories object, it will not be re-added.
     if ($v !== null) {
         $v->addRatingCategoryOptions($this);
     }
     return $this;
 }
Exemplo n.º 3
0
 /**
  * Filter the query by a related \RatingCategories object
  *
  * @param \RatingCategories|ObjectCollection $ratingCategories 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 filterByRatingCategories($ratingCategories, $comparison = null)
 {
     if ($ratingCategories instanceof \RatingCategories) {
         return $this->addUsingAlias(RatingCategoryValuesTableMap::COL_RATING_CATEGORY_ID, $ratingCategories->getId(), $comparison);
     } elseif ($ratingCategories instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(RatingCategoryValuesTableMap::COL_RATING_CATEGORY_ID, $ratingCategories->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByRatingCategories() only accepts arguments of type \\RatingCategories or Collection');
     }
 }