/**
  * Exclude object from result
  *
  * @param   ChildProductHighlighted $productHighlighted Object to remove from the list of results
  *
  * @return $this|ChildProductHighlightedQuery The current query, for fluid interface
  */
 public function prune($productHighlighted = null)
 {
     if ($productHighlighted) {
         $this->addUsingAlias(ProductHighlightedTableMap::COL_PRODUCT_HIGHLIGHTED_ID, $productHighlighted->getProductHighlightedId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Beispiel #2
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');
     }
 }
Beispiel #3
0
 /**
  * @param ChildProductHighlighted $productHighlighted The ChildProductHighlighted object to add.
  */
 protected function doAddProductHighlighted(ChildProductHighlighted $productHighlighted)
 {
     $this->collProductHighlighteds[] = $productHighlighted;
     $productHighlighted->setProduct($this);
 }