Beispiel #1
0
 /**
  * BulkWrite constructor.
  *
  * @param HasSchemaInterface $entity
  */
 public function __construct(HasSchemaInterface $entity)
 {
     $this->setBulkWrite(new MongoBulkWrite(['ordered' => false]));
     $this->schema = $entity->getSchema();
 }