src/Attribute/TranslatedReference.php
public function searchForInLanguages($strPattern, $arrLanguages = array())
    {
        $optionizer = $this->getOptionizer();
        $procedure  = $optionizer['value'] . ' LIKE :pattern';
        $strPattern = str_replace(array('*', '?'), array('%', '_'), $strPattern);

        $queryBuilder = $this->connection->createQueryBuilder()
            ->select('DISTINCT item_id')
            ->from($this->getValueTable())
            ->andWhere($procedure)
            ->setParameter('pattern', $strPattern);

        $this->buildWhere($queryBuilder, null, $arrLanguages);

        $filterRule = SimpleQuery::createFromQueryBuilder($queryBuilder, 'item_id');

        return $filterRule->getMatchingIds();
    }
public function searchForInLanguages($strPattern, $arrLanguages = array())
    {
        $optionizer = $this->getOptionizer();
        $procedure  = $optionizer['value'] . ' LIKE :pattern';
        $strPattern = str_replace(array('*', '?'), array('%', '_'), $strPattern);

        $queryBuilder = $this->connection->createQueryBuilder()
            ->select('DISTINCT item_id')
            ->from($this->getValueTable())
            ->andWhere($procedure)
            ->setParameter('pattern', $strPattern);

        $this->buildWhere($queryBuilder, null, $arrLanguages);

        $filterRule = SimpleQuery::createFromQueryBuilder($queryBuilder, 'item_id');

        return $filterRule->getMatchingIds();
    }
{@inheritDoc}