Example #1
0
 /**
  * Filter the query by a related \Thelia\Model\ProductAssociatedContent object
  *
  * @param \Thelia\Model\ProductAssociatedContent|ObjectCollection $productAssociatedContent  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildProductQuery The current query, for fluid interface
  */
 public function filterByProductAssociatedContent($productAssociatedContent, $comparison = null)
 {
     if ($productAssociatedContent instanceof \Thelia\Model\ProductAssociatedContent) {
         return $this->addUsingAlias(ProductTableMap::ID, $productAssociatedContent->getProductId(), $comparison);
     } elseif ($productAssociatedContent instanceof ObjectCollection) {
         return $this->useProductAssociatedContentQuery()->filterByPrimaryKeys($productAssociatedContent->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByProductAssociatedContent() only accepts arguments of type \\Thelia\\Model\\ProductAssociatedContent or Collection');
     }
 }