Esempio n. 1
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');
     }
 }