Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function deleteIndex($dimensions, \Traversable $documents)
 {
     foreach ($this->dataTypes as $dataType) {
         foreach ($this->batch->getItems($documents, $this->batchSize) as $batchDocuments) {
             $documentsId = array_column($batchDocuments, 'id');
             $this->getAdapter()->delete($this->getTableName($dataType, $dimensions), ['id' => $documentsId]);
         }
     }
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function deleteIndex($dimensions, \Traversable $documents)
 {
     foreach ($this->batch->getItems($documents, $this->batchSize) as $batchDocuments) {
         $this->getAdapter()->delete($this->getTableName($dimensions), ['entity_id in (?)' => $batchDocuments]);
     }
 }