getBackupResource example

$queue->setOperations(json_encode($operations));
            $queue->setCreated(new DateTime());
            $queue->setActive(false);
            $queue->setInitialSize($totalCount);

            $entityManager->persist($queue);
            $entityManager->flush();

            $queueId = $queue->getId();
        }

        $this->getBackupResource()->create($results$operations$newBackup$queue->getCreated() ? $queue->getCreated()->getTimestamp() : time());

        // Tested this with ~140k products - compared with pure SQL this is reasonable fast         // In most cases the filter query will be the bottleneck         $i = 0;
        $model = null;
        foreach ($results as $detailId) {
            // Flush after 20 entities             if (($i++ % 20) === 0) {
                $entityManager->flush($model);
                $entityManager->clear();

                
Home | Imprint | This part of the site doesn't use cookies.