PHPackages                             mmoreram/simple-doctrine-mapping - 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. mmoreram/simple-doctrine-mapping

ActiveLibrary[Database &amp; ORM](/categories/database)

mmoreram/simple-doctrine-mapping
================================

Simple Doctrine Mapping

v1.2.0(9y ago)2969.9k↓50%10[2 PRs](https://github.com/mmoreram/SimpleDoctrineMapping/pulls)20MITPHPPHP ^7.1

Since Aug 25Pushed 6y ago4 watchersCompare

[ Source](https://github.com/mmoreram/SimpleDoctrineMapping)[ Packagist](https://packagist.org/packages/mmoreram/simple-doctrine-mapping)[ Docs](https://github.com/mmoreram/SimpleDoctrineMapping)[ RSS](/packages/mmoreram-simple-doctrine-mapping/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (11)Used By (20)

Simple Doctrine Mapping for Symfony2
====================================

[](#simple-doctrine-mapping-for-symfony2)

[![Build Status](https://camo.githubusercontent.com/07a99251ad81ebca2ebc217c7d95989490ba60f9d81f5238e4eef8583bdd0b49/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d6d6f726572616d2f53696d706c65446f637472696e654d617070696e672e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mmoreram/SimpleDoctrineMapping)

*KISS*, Remember?

This project provides you an amazing way of adding your entities mapping data in any Symfony project, without the need of taking part of the `auto_mapping`doctrine process.

With a simple compiler pass in your bundle, make sure your entities are mapped properly into database, and provider your bundle users a unique way of overwriting and customization of these entities.

To work with a higher abstraction level of this bundle, use the mapping part of [http://github.com/mmoreram/BaseBundle](https://github.com/mmoreram/BaseBundle#entity-mapping). This bundle makes the best possible integration of SimpleDoctrineMapping in your bundles.

Repeat with me, *Keep it simple*.

CompilerPass
------------

[](#compilerpass)

For those of you who still do not know what is a CompilerPass, try to visualize it as your last chance to configure your container. At this point you can retrieve all your parameter configuration, but you cannot build any service, this is the point where you can dynamically build and complete services.

Once compiled, this container will be read-only.

This CompilerPass let each bundle be responsible for its own entities, defining per each one, the class to be mapped, the path of the mapping file and the manager that will manage it.

You should create your own compiler pass

```
