Exemplo n.º 1
0
 /**
  * Filter the query by a related \Thelia\Model\FeatureAv object
  *
  * @param \Thelia\Model\FeatureAv|ObjectCollection $featureAv  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildFeatureQuery The current query, for fluid interface
  */
 public function filterByFeatureAv($featureAv, $comparison = null)
 {
     if ($featureAv instanceof \Thelia\Model\FeatureAv) {
         return $this->addUsingAlias(FeatureTableMap::ID, $featureAv->getFeatureId(), $comparison);
     } elseif ($featureAv instanceof ObjectCollection) {
         return $this->useFeatureAvQuery()->filterByPrimaryKeys($featureAv->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByFeatureAv() only accepts arguments of type \\Thelia\\Model\\FeatureAv or Collection');
     }
 }