PHPackages                             joschi127/doctrine-entity-override-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. joschi127/doctrine-entity-override-bundle

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

joschi127/doctrine-entity-override-bundle
=========================================

Symfony bundle which allows to override entities by using inheritance

v0.7.2(6y ago)7123.5k↓44.4%11[3 PRs](https://github.com/joschi127/doctrine-entity-override-bundle/pulls)MITPHPPHP &gt;=5.6.0CI failing

Since Feb 10Pushed 6y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (9)Versions (16)Used By (0)

doctrine-entity-override-bundle
===============================

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

[![Build Status](https://camo.githubusercontent.com/ee144e40d2e25d79718ffd8c57a9fc267e4cf272100bdfffb18e307c4a5c86db/68747470733a2f2f7472617669732d63692e6f72672f6a6f736368693132372f646f637472696e652d656e746974792d6f766572726964652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/joschi127/doctrine-entity-override-bundle)

Symfony bundle which allows to override entities by using inheritance

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

[](#configuration)

Add to `app/config/config.yml`:

```
# override entities
joschi127_doctrine_entity_override:
    overridden_entities:
        # Keep in mind: if you are using multi level inheritance, you have to use the top most super class on the
        # left side
        OriginalBundle\Entity\Example: CustomizedBundle\Entity\Example

```

Hints
-----

[](#hints)

- If you are using multi level inheritance, you have to use the top most super class on the left side in the configuration under `overridden_entities`.
- If you are using multi level inheritance, the properties of the class in between have to be protected, otherwise you will get a `ReflectionException` saying `Property ...::$propertyName does not exist`.
- It is recommended that the original entity is defined as `MappedSuperclass`. You can do so if it is your own code. If you want to extend other, third party entities, this should work in most cases. But parts of the mapping will be regenerated internally by the `LoadORMMetadataSubscriber` of this bundle and at least some doctrine mapping features might not be supported and you might run into issues.
- Using `@ORM\AttributeOverrides` is not supported, instead just override the property in your customized entity class and add the ORM mapping for the property in your customized entity as usual. This bundle will then unload the original mapping configuration and only use your customized mapping.
- Have a look at the [Tests/Functional/src folder](https://github.com/joschi127/doctrine-entity-override-bundle/tree/master/Tests/Functional/src)for some example code.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.4% 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 ~102 days

Recently: every ~139 days

Total

14

Last Release

2417d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4.5

v0.7.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7280844b914942d5419f7eb68409aab969a71dcebde2e8887ab8d5da08dedd7?d=identicon)[joschi127](/maintainers/joschi127)

![](https://www.gravatar.com/avatar/aa128194f11fe6ff585511dd8399a94f18b237df6e5f44a93a0f1c563ad5b665?d=identicon)[lukomuko](/maintainers/lukomuko)

---

Top Contributors

[![joschi127](https://avatars.githubusercontent.com/u/1758468?v=4)](https://github.com/joschi127 "joschi127 (55 commits)")[![lukomuko](https://avatars.githubusercontent.com/u/6930491?v=4)](https://github.com/lukomuko "lukomuko (12 commits)")[![mkilmanas](https://avatars.githubusercontent.com/u/392168?v=4)](https://github.com/mkilmanas "mkilmanas (2 commits)")[![TomasLudvik](https://avatars.githubusercontent.com/u/5638367?v=4)](https://github.com/TomasLudvik "TomasLudvik (2 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (1 commits)")

---

Tags

doctrineentitydoctrine2overrideinheritancecustomizemapped-superclass

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/joschi127-doctrine-entity-override-bundle/health.svg)

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

###  Alternatives

[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-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.

67184.1k](/packages/webonaute-doctrine-fixtures-generator-bundle)[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.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[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.

813.1k](/packages/ahmed-bhs-doctrine-doctor)[damianociarla/dynamic-discriminator-map-bundle

DCSDynamicDiscriminatorMapBundle simplifies the use of Doctrine Single Table Inheritance mapping strategy in Symfony2.

1237.7k](/packages/damianociarla-dynamic-discriminator-map-bundle)

PHPackages © 2026

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