public function findVariantsWithBase($arrIds, $objFilter)
    {
        if (!$arrIds) {
            // Return an empty result.
            return $this->getItemsWithId(array());
        }
        $objNewFilter = $this->copyFilter($objFilter);

        $builder = $this->getConnection()->createQueryBuilder();

        $idList = $builder
            ->select('v.id')
            ->from($this->getTableName(), 'v')
            ->leftJoin('v', $this->getTableName(), 'v2', 'v.vargroup=v2.vargroup')
            ->where($builder->expr()->in('v2.id', ':ids'))
            ->setParameter('ids', $arrIds, Connection::PARAM_STR_ARRAY)
            ->execute()
            ->fetchAll(\PDO::FETCH_COLUMN);

        $objNewFilter->addFilterRule(new StaticIdList($idList));
        return $this->findByFilter($objNewFilter);
    }
public function findVariantsWithBase($arrIds, $objFilter)
    {
        if (!$arrIds) {
            // Return an empty result.
            return $this->getItemsWithId(array());
        }
        $objNewFilter = $this->copyFilter($objFilter);

        $builder = $this->getConnection()->createQueryBuilder();

        $idList = $builder
            ->select('v.id')
            ->from($this->getTableName(), 'v')
            ->leftJoin('v', $this->getTableName(), 'v2', 'v.vargroup=v2.vargroup')
            ->where($builder->expr()->in('v2.id', ':ids'))
            ->setParameter('ids', $arrIds, Connection::PARAM_STR_ARRAY)
            ->execute()
            ->fetchAll(\PDO::FETCH_COLUMN);

        $objNewFilter->addFilterRule(new StaticIdList($idList));
        return $this->findByFilter($objNewFilter);
    }
{@inheritdoc}