public function eagerLoader(EagerLoader $instance = null)
    {
        deprecationWarning(
            'Query::eagerLoader() is deprecated. ' .
            'Use setEagerLoader()/getEagerLoader() instead.'
        );
        if ($instance !== null) {
            return $this->setEagerLoader($instance);
        }

        return $this->getEagerLoader();
    }
public function eagerLoader(EagerLoader $instance = null)
    {
        deprecationWarning(
            'Query::eagerLoader() is deprecated. ' .
            'Use setEagerLoader()/getEagerLoader() instead.'
        );
        if ($instance !== null) {
            return $this->setEagerLoader($instance);
        }

        return $this->getEagerLoader();
    }
public function eagerLoader ( EagerLoader $ instance = null ) { deprecationWarning ( 'Query::eagerLoader() is deprecated. ' . 'Use setEagerLoader()/getEagerLoader() instead.' ) ; if ( $ instance !== null ) { return $ this -> setEagerLoader ( $ instance ) ; } return $ this -> getEagerLoader ( ) ; }
Sets the instance of the eager loader class to use for loading associations
and storing containments. If called with no arguments, it will return the
currently configured instance.

@deprecated 3.4.0 Use setEagerLoader()/getEagerLoader() instead.
@param \Cake\ORM\EagerLoader|null $instance The eager loader to use. Pass null
to get the current eagerloader.
@return \Cake\ORM\EagerLoader|$this
Sets the instance of the eager loader class to use for loading associations and storing containments . If called with no arguments it will return the currently configured instance .