Пример #1
0
 /**
  * Filter the query by a related \Thelia\Model\ProductImageI18n object
  *
  * @param \Thelia\Model\ProductImageI18n|ObjectCollection $productImageI18n  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildProductImageQuery The current query, for fluid interface
  */
 public function filterByProductImageI18n($productImageI18n, $comparison = null)
 {
     if ($productImageI18n instanceof \Thelia\Model\ProductImageI18n) {
         return $this->addUsingAlias(ProductImageTableMap::ID, $productImageI18n->getId(), $comparison);
     } elseif ($productImageI18n instanceof ObjectCollection) {
         return $this->useProductImageI18nQuery()->filterByPrimaryKeys($productImageI18n->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByProductImageI18n() only accepts arguments of type \\Thelia\\Model\\ProductImageI18n or Collection');
     }
 }