protected function getDataUpdater()
    {
        if(!isset($this->dataUpdater))
        {
            $readPreference = $this->collection->__debugInfo()['readPreference']->getMode();

            $opts = array(
                'defaultContext'=>$this->defaultContext,
                OP_ASYNC=>$this->async,
                'stat'=>$this->stat,
                'readPreference'=>$readPreference,
                'retriesToGetLock' => $this->retriesToGetLock,
                'statsConfig'=>$this->statsConfig
            );

            $this->dataUpdater = new Updates($this, $opts);
        }
        return $this->dataUpdater;
    }
protected function getDataUpdater()
    {
        if(!isset($this->dataUpdater))
        {
            $readPreference = $this->collection->__debugInfo()['readPreference']->getMode();

            $opts = array(
                'defaultContext'=>$this->defaultContext,
                OP_ASYNC=>$this->async,
                'stat'=>$this->stat,
                'readPreference'=>$readPreference,
                'retriesToGetLock' => $this->retriesToGetLock,
                'statsConfig'=>$this->statsConfig
            );

            $this->dataUpdater = new Updates($this, $opts);
        }
        return $this->dataUpdater;
    }
protected function getDataUpdater ( ) { if ( ! isset ( $ this -> dataUpdater ) ) { $ readPreference = $ this -> collection -> __debugInfo ( ) [ 'readPreference' ] -> getMode ( ) ; $ opts = array ( 'defaultContext' => $ this -> defaultContext , OP_ASYNC => $ this -> async , 'stat' => $ this -> stat , 'readPreference' => $ readPreference , 'retriesToGetLock' => $ this -> retriesToGetLock , 'statsConfig' => $ this -> statsConfig ) ; $ this -> dataUpdater = new Updates ( $ this , $ opts ) ; } return $ this -> dataUpdater ; }
Returns the delegate object for saving data in Mongo

@return Updates
Returns the delegate object for saving data in Mongo