PHPackages                             6dreams/doctrine-bulk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. 6dreams/doctrine-bulk

ArchivedLibrary[Database &amp; ORM](/categories/database)

6dreams/doctrine-bulk
=====================

Simple classes that allows bulk operations on doctrine entities.

2.0.0(4y ago)2538.3k↓25%9[5 issues](https://github.com/6dreams/doctrine-bulk/issues)[1 PRs](https://github.com/6dreams/doctrine-bulk/pulls)MITPHPPHP &gt;=8.0CI failing

Since Dec 28Pushed 1y ago3 watchersCompare

[ Source](https://github.com/6dreams/doctrine-bulk)[ Packagist](https://packagist.org/packages/6dreams/doctrine-bulk)[ RSS](/packages/6dreams-doctrine-bulk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (10)Used By (0)

Doctrine-Bulk Classes
=====================

[](#doctrine-bulk-classes)

Adds ability to multiple insert of entities or array to database using doctrine schema.

[![Build Status](https://camo.githubusercontent.com/50fad68d5c8e452f9cf5693ea355417ca9ab6dae1f800acb44bb457d24895812/68747470733a2f2f7472617669732d63692e6f72672f36647265616d732f646f637472696e652d62756c6b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/6dreams/doctrine-bulk)

### Notes

[](#notes)

- Designed for MySQL (also works with PostgreSQL)
- Works with custom id generators (need few tweaks)
- Without custom id generator, works only with MySQL AI
- Allows retrive first inserted id \\ total updated
- As bonus this package includes `HashedIdGenerator` that can be used for generate char(25) ids from entity data
- Please note that UPDATE queries with HashedIdGenerator currently didn't support changing Id

### Samples

[](#samples)

#### Default usage

[](#default-usage)

```
