PHPackages                             tourze/doctrine-entity-checker-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-entity-checker-bundle

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

tourze/doctrine-entity-checker-bundle
=====================================

A Symfony Bundle that provides Doctrine entity checking and processing capabilities with custom checkers, ID generators, and SQL formatting tools.

1.0.1(6mo ago)040.0k13MITPHPCI passing

Since Mar 24Pushed 4mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (22)Versions (13)Used By (13)

Doctrine Entity Checker Bundle
==============================

[](#doctrine-entity-checker-bundle)

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

[![Latest Version](https://camo.githubusercontent.com/7e49db99566a454034ffb3cae7d225c2cc65acfaed8be2fe79d419090d78cb45/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f646f637472696e652d656e746974792d636865636b65722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/doctrine-entity-checker-bundle)[![Total Downloads](https://camo.githubusercontent.com/613d130f2a829e0a77a823bee0c22d007fb0b3c2fb891b173588ded218dc5a24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f646f637472696e652d656e746974792d636865636b65722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/doctrine-entity-checker-bundle)[![PHP Version](https://camo.githubusercontent.com/ba5185d4d0bd8d09d48fa44ad27ab033a30d68c12a942dc658dfeeae4695f619/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f646f637472696e652d656e746974792d636865636b65722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/doctrine-entity-checker-bundle)[![License](https://camo.githubusercontent.com/ccfef902457ecda049661c17386c54c73ee154f69a3bf6fb3b045614181d261a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f646f637472696e652d656e746974792d636865636b65722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A Symfony Bundle that provides Doctrine entity checking and processing capabilities. Through custom checkers, you can automatically handle specific logic before entity persistence.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Requirements](#requirements)
- [Quick Start](#quick-start)
- [Configuration](#configuration)
- [Advanced Usage](#advanced-usage)
- [API Reference](#api-reference)
- [Testing](#testing)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- Automatic entity processing before persistence
- Support for custom ID generators with `#[ORM\CustomIdGenerator]` attribute
- Entity primary key management utilities
- SQL formatting and generation tools
- Lazy-loaded services for optimal performance
- Support for composite primary keys

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

[](#installation)

Install via Composer:

```
composer require tourze/doctrine-entity-checker-bundle
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Symfony 6.4 or higher
- Doctrine ORM 3.0 or higher

Quick Start
-----------

[](#quick-start)

1. Register the Bundle

```
// config/bundles.php
return [
    // ...
    Tourze\DoctrineEntityCheckerBundle\DoctrineEntityCheckerBundle::class => ['all' => true],
];
```

2. Create a custom entity checker

```
