public function config(array $config = null)
    {
        deprecationWarning(
            'EagerLoadable::config() is deprecated. ' .
            'Use setConfig()/getConfig() instead.'
        );
        if ($config !== null) {
            $this->setConfig($config);
        }

        return $this->getConfig();
    }