public function filterByAttributeAv($attributeAv, $comparison = null)
    {
        if ($attributeAv instanceof \Thelia\Model\AttributeAv) {
            return $this
                ->addUsingAlias(AttributeTypeAvMetaTableMap::ATTRIBUTE_AV_ID, $attributeAv->getId(), $comparison);
        } elseif ($attributeAv instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

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

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

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

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