public function filterByEntity($entity = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($entity)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $entity)) {
                $entity = str_replace('*', '%', $entity);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(IndexEngineIndexTableMap::ENTITY, $entity, $comparison);
    }
public function filterByEntity($entity = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($entity)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $entity)) {
                $entity = str_replace('*', '%', $entity);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(IndexEngineIndexTableMap::ENTITY, $entity, $comparison);
    }
public function filterByEntity ( $ entity = null , $ comparison = null ) { if ( null === $ comparison ) { if ( is_array ( $ entity ) ) { $ comparison = Criteria :: IN ; } elseif ( preg_match ( '/[\%\*]/' , $ entity ) ) { $ entity = str_replace ( '*' , '%' , $ entity ) ; $ comparison = Criteria :: LIKE ; } } return $ this -> addUsingAlias ( IndexEngineIndexTableMap :: ENTITY , $ entity , $ comparison ) ; }
Filter the query on the entity column

Example usage:
<code>
$query->filterByEntity('fooValue');   // WHERE entity = 'fooValue'
$query->filterByEntity('%fooValue%'); // WHERE entity LIKE '%fooValue%'
</code>

@param string $entity     The value to use as filter.
Accepts wildcards (* and % trigger a LIKE)
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildIndexEngineIndexQuery The current query, for fluid interface
Filter the query on the entity column