protected function executeLoader(LoaderInterface $loader)
    {
        $offset = 0;

        try {

            while ($result = $loader->load($this->limit, $offset)) {

                $this->persist($result);
                $offset += $this->limit;
            }

        } catch (LoaderException $e) {
            $this->getLogger()->error($e->getMessage());
        }
    }
protected function executeLoader(LoaderInterface $loader)
    {
        $offset = 0;

        try {

            while ($result = $loader->load($this->limit, $offset)) {

                $this->persist($result);
                $offset += $this->limit;
            }

        } catch (LoaderException $e) {
            $this->getLogger()->error($e->getMessage());
        }
    }
protected function executeLoader ( LoaderInterface $ loader ) { $ offset = 0 ; try { while ( $ result = $ loader -> load ( $ this -> limit , $ offset ) ) { $ this -> persist ( $ result ) ; $ offset += $ this -> limit ; } } catch ( LoaderException $ e ) { $ this -> getLogger ( ) -> error ( $ e -> getMessage ( ) ) ; } }
Runs the addressed loader to retrieve its' data.

Any exception or error will be logged to the systems error log.

@param LoaderInterface $loader
Runs the addressed loader to retrieve its data .