PHPackages                             tourze/doctrine-direct-insert-bundle - 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. tourze/doctrine-direct-insert-bundle

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

tourze/doctrine-direct-insert-bundle
====================================

Symfony Bundle for direct database insertion of objects

1.0.0(6mo ago)09.7k6MITPHPCI passing

Since Jun 11Pushed 4mo agoCompare

[ Source](https://github.com/tourze/doctrine-direct-insert-bundle)[ Packagist](https://packagist.org/packages/tourze/doctrine-direct-insert-bundle)[ RSS](/packages/tourze-doctrine-direct-insert-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (20)Versions (3)Used By (6)

Doctrine Direct Insert Bundle
=============================

[](#doctrine-direct-insert-bundle)

[![PHP Version](https://camo.githubusercontent.com/04744bae0a61d2ffe29c26f07a9612eae20445fc6feaeb77b3af1f0e9be6447c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/c27a457659b89ee4f1f80f7995c559dd37f2051bde7167ad25791e5c5c92cc8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e737667)](#)[![Code Coverage](https://camo.githubusercontent.com/b3545ae1bcdb4ea486f71f87b43001e82dd21933bc8035d44601706c851265da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e737667)](#)

[English](README.md) | [中文](README.zh-CN.md)

A Symfony bundle that provides direct database insertion capabilities for Doctrine entities without using the ORM's persist/flush mechanism.

This bundle is designed for high-performance scenarios where you need to insert data directly into the database.

Features
--------

[](#features)

- Direct database insertion without ORM overhead
- Support for auto-generated and preset IDs
- Dedicated database connection support
- Compatible with various data types (string, text, integer, float, boolean, nullable fields)
- Automatic SQL generation based on entity metadata

Installation
------------

[](#installation)

```
composer require tourze/doctrine-direct-insert-bundle
```

Configuration
-------------

[](#configuration)

Add the bundle to your `config/bundles.php`:

```
