Example #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildUserReviews $userReviews Object to remove from the list of results
  *
  * @return $this|ChildUserReviewsQuery The current query, for fluid interface
  */
 public function prune($userReviews = null)
 {
     if ($userReviews) {
         $this->addUsingAlias(UserReviewsTableMap::COL_ID, $userReviews->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #2
0
 /**
  * @param ChildUserReviews $userReviews The ChildUserReviews object to add.
  */
 protected function doAddUserReviews(ChildUserReviews $userReviews)
 {
     $this->collUserReviewss[] = $userReviews;
     $userReviews->setRatings($this);
 }
Example #3
0
 /**
  * Filter the query by a related \UserReviews object
  *
  * @param \UserReviews|ObjectCollection $userReviews the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildRatingsQuery The current query, for fluid interface
  */
 public function filterByUserReviews($userReviews, $comparison = null)
 {
     if ($userReviews instanceof \UserReviews) {
         return $this->addUsingAlias(RatingsTableMap::COL_ID, $userReviews->getRating(), $comparison);
     } elseif ($userReviews instanceof ObjectCollection) {
         return $this->useUserReviewsQuery()->filterByPrimaryKeys($userReviews->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByUserReviews() only accepts arguments of type \\UserReviews or Collection');
     }
 }