src/DcGeneral/Data/Driver.php
protected function prepareFilter(ConfigInterface $configuration)
    {
        if (null === $this->connection) {
            // @codingStandardsIgnoreStart
            @trigger_error(
                'Not setting a "' . Connection::class .
                '" via "setConnection()" is deprecated and will cause an error in MetaModels 3.0.',
                E_USER_DEPRECATED
            );
            // @codingStandardsIgnoreEnd
        }
        $builder = new FilterBuilder($this->getMetaModel(), $configuration, $this->connection);
        return $builder->build();
    }
protected function prepareFilter(ConfigInterface $configuration)
    {
        if (null === $this->connection) {
            // @codingStandardsIgnoreStart
            @trigger_error(
                'Not setting a "' . Connection::class .
                '" via "setConnection()" is deprecated and will cause an error in MetaModels 3.0.',
                E_USER_DEPRECATED
            );
            // @codingStandardsIgnoreEnd
        }
        $builder = new FilterBuilder($this->getMetaModel(), $configuration, $this->connection);
        return $builder->build();
    }
Prepare a filter and return it.

@param ConfigInterface $configuration The configuration.

@return IFilter