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

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

pjarmalavicius/entity-extend-bundle
===================================

Easy doctrine entities extending

1.0(10y ago)12476[1 issues](https://github.com/pjarmalavicius/PjEntityExtendBundle/issues)MITPHPPHP ~5.4

Since Jan 31Pushed 10y ago2 watchersCompare

[ Source](https://github.com/pjarmalavicius/PjEntityExtendBundle)[ Packagist](https://packagist.org/packages/pjarmalavicius/entity-extend-bundle)[ Docs](https://github.com/pjarmalavicius/PjEntityExtendBundle)[ RSS](/packages/pjarmalavicius-entity-extend-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

PjEntityExtendBundle
====================

[](#pjentityextendbundle)

The PjEntityExtendBundle is symfony2 bundle, which lets extend doctrine ORM entities. Doctrine MappedSupperclass 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. PjEntityExtendBundle can help you.

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

[](#installation)

Composer
--------

[](#composer)

`composer require pjarmalavicius/entity-extend-bundle`

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

[](#enable-the-bundle)

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

```

Usage
=====

[](#usage)

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

```
