Mongolid\DataMapper\BulkWrite::__construct PHP Метод

__construct() публичный Метод

BulkWrite constructor.
public __construct ( Mongolid\Schema\HasSchemaInterface $entity )
$entity Mongolid\Schema\HasSchemaInterface
    public function __construct(HasSchemaInterface $entity)
    {
        $this->setBulkWrite(new MongoBulkWrite(['ordered' => false]));
        $this->schema = $entity->getSchema();
    }