PHPackages                             kalypso63/entity-extend-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. kalypso63/entity-extend-bundle

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

kalypso63/entity-extend-bundle
==============================

Slight variation of the original pjarmalavicius/PjEntityExtendBundle - Easy doctrine entities extending

v1.0.1(6y ago)04proprietaryPHPPHP &gt;=7.1

Since Aug 20Pushed 4y agoCompare

[ Source](https://github.com/kalypso63/EntityExtendBundle)[ Packagist](https://packagist.org/packages/kalypso63/entity-extend-bundle)[ Docs](http://evozon.com)[ RSS](/packages/kalypso63-entity-extend-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (3)Used By (0)

EntityExtendBundle
==================

[](#entityextendbundle)

The EntityExtendBundle is a Symfony3 bundle, which lets extend doctrine ORM entities. Doctrine MappedSuperclass is useful when you want to declare common information for other entities, but every new it's subclass must be new entity. Sometimes you need to extend existing entity, without introducing new one. EntityExtendBundle can help you.

Installation
============

[](#installation)

Composer
--------

[](#composer)

`composer require kalypso63/entity-extend-bundle`

Enable the bundle
-----------------

[](#enable-the-bundle)

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new \Pj\EntityExtendBundle\EntityExtendBundle(),
        // ...
    );
}

```

Usage
=====

[](#usage)

EntityExtendBundle can be used with annotations or yml mapping. Lets say you have Product entity:

```
