Exemplo n.º 1
0
 /**
  * @param ChildUserWeights $userWeights The ChildUserWeights object to add.
  */
 protected function doAddUserWeights(ChildUserWeights $userWeights)
 {
     $this->collUserWeightss[] = $userWeights;
     $userWeights->setRatingCategories($this);
 }
Exemplo n.º 2
0
 /**
  * @param ChildUserWeights $userWeights The ChildUserWeights object to add.
  */
 protected function doAddUserWeights(ChildUserWeights $userWeights)
 {
     $this->collUserWeightss[] = $userWeights;
     $userWeights->setUser($this);
 }
Exemplo n.º 3
0
 /**
  * Filter the query by a related \UserWeights object
  *
  * @param \UserWeights|ObjectCollection $userWeights the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildRatingCategoriesQuery The current query, for fluid interface
  */
 public function filterByUserWeights($userWeights, $comparison = null)
 {
     if ($userWeights instanceof \UserWeights) {
         return $this->addUsingAlias(RatingCategoriesTableMap::COL_ID, $userWeights->getRatingCategoryId(), $comparison);
     } elseif ($userWeights instanceof ObjectCollection) {
         return $this->useUserWeightsQuery()->filterByPrimaryKeys($userWeights->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByUserWeights() only accepts arguments of type \\UserWeights or Collection');
     }
 }
Exemplo n.º 4
0
 /**
  * Exclude object from result
  *
  * @param   ChildUserWeights $userWeights Object to remove from the list of results
  *
  * @return $this|ChildUserWeightsQuery The current query, for fluid interface
  */
 public function prune($userWeights = null)
 {
     if ($userWeights) {
         $this->addUsingAlias(UserWeightsTableMap::COL_ID, $userWeights->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }