Example #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildSocialView $socialView Object to remove from the list of results
  *
  * @return $this|ChildSocialViewQuery The current query, for fluid interface
  */
 public function prune($socialView = null)
 {
     if ($socialView) {
         $this->addUsingAlias(SocialViewTableMap::COL_SOCIAL_VIEW_ID, $socialView->getSocialViewId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #2
0
 /**
  * Filter the query by a related \App\Propel\SocialView object
  *
  * @param \App\Propel\SocialView|ObjectCollection $socialView 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 filterBySocialView($socialView, $comparison = null)
 {
     if ($socialView instanceof \App\Propel\SocialView) {
         return $this->addUsingAlias(ResourceTableMap::COL_RESOURCE_ID, $socialView->getSocialViewFor(), $comparison);
     } elseif ($socialView instanceof ObjectCollection) {
         return $this->useSocialViewQuery()->filterByPrimaryKeys($socialView->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterBySocialView() only accepts arguments of type \\App\\Propel\\SocialView or Collection');
     }
 }
Example #3
0
 /**
  * @param ChildSocialView $socialView The ChildSocialView object to add.
  */
 protected function doAddSocialView(ChildSocialView $socialView)
 {
     $this->collSocialViews[] = $socialView;
     $socialView->setUser($this);
 }