src/Persister/ObjectPersister.php
public function insertMany(array $objects)
    {
        $documents = [];
        foreach ($objects as $object) {
            $documents[] = $this->transformToElasticaDocument($object);
        }
        try {
            $this->type->addDocuments($documents, $this->options);
        } catch (BulkException $e) {
            $this->log($e);
        }
    }
public function insertMany(array $objects)
    {
        $documents = [];
        foreach ($objects as $object) {
            $documents[] = $this->transformToElasticaDocument($object);
        }
        try {
            $this->type->addDocuments($documents, $this->options);
        } catch (BulkException $e) {
            $this->log($e);
        }
    }
{@inheritdoc}