PHPackages                             madesst/doctrine-generation-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. madesst/doctrine-generation-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

madesst/doctrine-generation-bundle
==================================

Add propel-like base classes when generating entites

v1.1.0(11y ago)0487MITPHP

Since Jul 25Pushed 10y ago2 watchersCompare

[ Source](https://github.com/madesst/MadesstDoctrineGenerationBundle)[ Packagist](https://packagist.org/packages/madesst/doctrine-generation-bundle)[ RSS](/packages/madesst-doctrine-generation-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (3)Versions (9)Used By (0)

MadesstDoctrineGenerationBundle
===============================

[](#madesstdoctrinegenerationbundle)

О бандле
--------

[](#о-бандле)

MadesstDoctrineGenerationBundle вносит изменения в стандартный процесс генерации доктриной сущностей (entities) и позволяет получить структуру классов как в пропеле: User extends Base/User, где весь сгенерированный код содержится в базовом классе, а вы работаете с чистым и незахлмаленным классом. Простой пример:

```
// src/Company/SomeBundle/Entity/User.php
class User extends \Smartstart\SpecialBundle\Entity\Base\User
{
	public function getUsername()
	{
		return $this->getFirstname().' '.$this->getLastname();
	}
}
```

```
// src/Company/SomeBundle/Entity/Base/User.php
class User
{
    /**
     * @var integer
     */
    protected $id;

    /**
     * @var string
     */
    protected $firstname;

    /**
     * @var string
     */
    protected $lastname;

    // ...
    // И так далее, обычный сгенерерированный доктриной класс
```

Бандл еще очень сырой, поэтому возможны отклонения в его поведении, прошу информировать меня о таких случаях

Установка
---------

[](#установка)

Добавьте бандл в ваш `composer.json` (для symfony &gt;=2.3):

```
{
    "require": {
        "madesst/doctrine-generation-bundle": "1.1"
    }
}
```

или (для symfony 2.2):

```
{
    "require": {
        "madesst/doctrine-generation-bundle": "1.0"
    }
}
```

или (для symfony 2.1):

```
{
    "require": {
        "madesst/doctrine-generation-bundle": "0.9"
    }
}
```

И зарегистрируйте бандл в `app/AppKernel.php`, после SensioGeneratorBundle:

```
// app/AppKernel.php
	public function registerBundles()
	{
		if (in_array($this->getEnvironment(), array('dev', 'test'))) {
			// ...
			$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
			$bundles[] = new Madesst\DoctrineGenerationBundle\MadesstDoctrineGenerationBundle();
		}
	}
```

Теперь вам стал доступен дополнительный ключ --propel-style в консольных коммандах doctrine:generate:entities и doctrine:generate:entity, который как раз и управляет способом генерации:

```
$ app/console doctrine:generate:entities СompanySomeBundle --propel-style
Generating entities for bundle "СompanySomeBundle"
  > backing up User.php to User.php~
  > generating Сompany\SomeBundle\Entity\Base\User
  > generating Сompany\SomeBundle\Entity\User
```

License
-------

[](#license)

Released under the MIT License, see LICENSE.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~342 days

Total

3

Last Release

4038d ago

Major Versions

v0.9.0 → v1.0.02013-07-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a36e008b5a79dd919ab6be402a46a4754286be42cfbb3a92f566b44ad0ddbff?d=identicon)[madesst](/maintainers/madesst)

---

Top Contributors

[![madesst](https://avatars.githubusercontent.com/u/300694?v=4)](https://github.com/madesst "madesst (12 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (4 commits)")

---

Tags

doctrinegenerationpropelmadesst

### Embed Badge

![Health badge](/badges/madesst-doctrine-generation-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/madesst-doctrine-generation-bundle/health.svg)](https://phpackages.com/packages/madesst-doctrine-generation-bundle)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4623.0M](/packages/damienharper-auditor-bundle)[mysql-workbench-schema-exporter/mysql-workbench-schema-exporter

MySQL Workbench Schema Exporter

485193.3k11](/packages/mysql-workbench-schema-exporter-mysql-workbench-schema-exporter)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

939.0k](/packages/ahmed-bhs-doctrine-doctor)[petkopara/crud-generator-bundle

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

7058.1k](/packages/petkopara-crud-generator-bundle)[webonaute/doctrine-fixtures-generator-bundle

Generate Fixture from your existing data in your database. You can specify the Entity name and the IDs you want to import in your fixture.

64184.4k](/packages/webonaute-doctrine-fixtures-generator-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
