Esempio n. 1
0
 /**
  * Filter the query by a related \App\Propel\ProductHighlighted object
  *
  * @param \App\Propel\ProductHighlighted|ObjectCollection $productHighlighted 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 filterByProductHighlighted($productHighlighted, $comparison = null)
 {
     if ($productHighlighted instanceof \App\Propel\ProductHighlighted) {
         return $this->addUsingAlias(ResourceTableMap::COL_RESOURCE_ID, $productHighlighted->getProductHighlightedFor(), $comparison);
     } elseif ($productHighlighted instanceof ObjectCollection) {
         return $this->useProductHighlightedQuery()->filterByPrimaryKeys($productHighlighted->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByProductHighlighted() only accepts arguments of type \\App\\Propel\\ProductHighlighted or Collection');
     }
 }