/** * @param ChildUserWeights $userWeights The ChildUserWeights object to add. */ protected function doAddUserWeights(ChildUserWeights $userWeights) { $this->collUserWeightss[] = $userWeights; $userWeights->setRatingCategories($this); }
/** * @param ChildUserWeights $userWeights The ChildUserWeights object to add. */ protected function doAddUserWeights(ChildUserWeights $userWeights) { $this->collUserWeightss[] = $userWeights; $userWeights->setUser($this); }
/** * 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'); } }
/** * 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; }