Not sure anymore, that was some time ago :). But actually it seems as if we could just reuse the one from ObjectPersister, that should do the trick. 
Directly calling ```this->type->insertObjects($objects);``` will not do the trick because then  the id of the Doctrine Entity is not used as the id of the elasticsearch document, ```$this->type``` is the Type from the Elastica library.