public function filterByFeature($feature, $comparison = null)
    {
        if ($feature instanceof \Thelia\Model\Feature) {
            return $this
                ->addUsingAlias(FeatureFeatureTypeTableMap::FEATURE_ID, $feature->getId(), $comparison);
        } elseif ($feature instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            return $this
                ->addUsingAlias(FeatureFeatureTypeTableMap::FEATURE_ID, $feature->toKeyValue('PrimaryKey', 'Id'), $comparison);
        } else {
            throw new PropelException('filterByFeature() only accepts arguments of type \Thelia\Model\Feature or Collection');
        }
    }
public function filterByFeature($feature, $comparison = null)
    {
        if ($feature instanceof \Thelia\Model\Feature) {
            return $this
                ->addUsingAlias(FeatureFeatureTypeTableMap::FEATURE_ID, $feature->getId(), $comparison);
        } elseif ($feature instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            return $this
                ->addUsingAlias(FeatureFeatureTypeTableMap::FEATURE_ID, $feature->toKeyValue('PrimaryKey', 'Id'), $comparison);
        } else {
            throw new PropelException('filterByFeature() only accepts arguments of type \Thelia\Model\Feature or Collection');
        }
    }
public function filterByFeature ( $ feature , $ comparison = null ) { if ( $ feature instanceof \ Thelia \ Model \ Feature ) { return $ this -> addUsingAlias ( FeatureFeatureTypeTableMap :: FEATURE_ID , $ feature -> getId ( ) , $ comparison ) ; } elseif ( $ feature instanceof ObjectCollection ) { if ( null === $ comparison ) { $ comparison = Criteria :: IN ; } return $ this -> addUsingAlias ( FeatureFeatureTypeTableMap :: FEATURE_ID , $ feature -> toKeyValue ( 'PrimaryKey' , 'Id' ) , $ comparison ) ; } else { throw new PropelException ( 'filterByFeature() only accepts arguments of type \Thelia\Model\Feature or Collection' ) ; } }
Filter the query by a related \Thelia\Model\Feature object

@param \Thelia\Model\Feature|ObjectCollection $feature The related object(s) to use as filter
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildFeatureFeatureTypeQuery The current query, for fluid interface
Filter the query by a related \ Thelia \ Model \ Feature object