/** * Exclude object from result * * @param ChildSocialRecommendation $socialRecommendation Object to remove from the list of results * * @return $this|ChildSocialRecommendationQuery The current query, for fluid interface */ public function prune($socialRecommendation = null) { if ($socialRecommendation) { $this->addUsingAlias(SocialRecommendationTableMap::COL_SOCIAL_RECOMMENDATION_ID, $socialRecommendation->getSocialRecommendationId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \App\Propel\SocialRecommendation object * * @param \App\Propel\SocialRecommendation|ObjectCollection $socialRecommendation the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildResourceQuery The current query, for fluid interface */ public function filterBySocialRecommendation($socialRecommendation, $comparison = null) { if ($socialRecommendation instanceof \App\Propel\SocialRecommendation) { return $this->addUsingAlias(ResourceTableMap::COL_RESOURCE_ID, $socialRecommendation->getSocialRecommendationFor(), $comparison); } elseif ($socialRecommendation instanceof ObjectCollection) { return $this->useSocialRecommendationQuery()->filterByPrimaryKeys($socialRecommendation->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterBySocialRecommendation() only accepts arguments of type \\App\\Propel\\SocialRecommendation or Collection'); } }
/** * @param ChildSocialRecommendation $socialRecommendationRelatedBySocialRecommendationTo The ChildSocialRecommendation object to add. */ protected function doAddSocialRecommendationRelatedBySocialRecommendationTo(ChildSocialRecommendation $socialRecommendationRelatedBySocialRecommendationTo) { $this->collSocialRecommendationsRelatedBySocialRecommendationTo[] = $socialRecommendationRelatedBySocialRecommendationTo; $socialRecommendationRelatedBySocialRecommendationTo->setUserRelatedBySocialRecommendationTo($this); }