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

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

wucdbm/entity-extend-bundle
===========================

Easy doctrine entities extending

v1.0.1(9y ago)09.9kMITPHPPHP ~5.5|~7.0

Since Jan 31Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (3)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:

```
