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