This package is abandoned and no longer maintained. No replacement package was suggested.

Multiple dbm manager

dev-master / 1.2.x-dev 2014-05-20 22:03 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:24:23 UTC


Requires at least PHP 5.3.3 with Doctrine 2 library. Compatible PHP 5.4 too.

Build Status SensioLabsInsight Latest Stable Version

PoolDBM package support doctrine common. You should know that this is an additional layer. But for to limit potential performance lowering, the mapping does not use reflection. It only dispatch features to doctrine managers.


The composer.json file in each branch indicates Doctrine2 compatibility. Additionally, several tags are available:

  • 1.2.x for Doctrine 2.4
  • 1.1.x for Doctrine 2.3
  • 1.0.x for Doctrine 2.2

Next Improvement

Optimize request doctrine with relation. And adding tests with real dbm.


The package has several class in debug mode, use these classes during development of your application. Example Pok\PoolDBM\ModelManagerDebug check method parameter and class-metadata info.


<multi-model model="MultiModel\User" repository-class="Repository\UserRepository">
    <model-reference manager="entity" field="dataId">
        <reference manager="document" field="id" reference-field="id" />

        <id-generator target-manager="document" />

    <model manager="entity" name="Entity\User" repository-method="findByIds">
        <field name="name" />

    <model manager="document" name="Document\User">
        <field name="profileContent" />

    <relation-one field="address" target-model="MultiModel\Address">
        <field-reference manager="document" field="addressUser" />

    <!-- compatible can to be empty for all managers, or defines several managers -->
    <relation-many field="posts" target-model="MultiModel\Post" compatible="entity,document" />

Bitdeli Badge