Newscoop\Image\UpdateStorageService::updateStorage PHP Метод

updateStorage() публичный Метод

Update storage for given number of images
public updateStorage ( integer $batchSize = 100 ) : void
$batchSize integer
Результат void
    public function updateStorage($batchSize = 100)
    {
        $images = $this->getImageRepository()->findImagesForStorageUpdate($batchSize);
        foreach ($images as $image) {
            $this->updateImage($image);
        }
        $this->em->flush();
    }