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

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

        return $this->getConfig();
    }
public function config ( array $ config = null ) { deprecationWarning ( 'EagerLoadable::config() is deprecated. ' . 'Use setConfig()/getConfig() instead.' ) ; if ( $ config !== null ) { $ this -> setConfig ( $ config ) ; } return $ this -> getConfig ( ) ; }
Sets the list of options to pass to the association object for loading
the records.

If called with no arguments it returns the current
value.

@deprecated 3.4.0 Use setConfig()/getConfig() instead.
@param array|null $config The value to set.
@return array
Sets the list of options to pass to the association object for loading the records .