pokap/pool-dbm-bundle

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

Symfony2 Multi Doctrine Repositories Bundle

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master / 1.0.x-dev 2014-01-15 15:07 UTC

This package is not auto-updated.

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


README

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

Build Status

This bundle integrates Pool-DBM.

Usage

By default, the object is initialized with values defined in the configuration:

pok_pool_dbm:
    debug: %kernel.debug%
    managers:
        orm:
            id: doctrine.orm.entity_manager

        odm:
            id: doctrine_mongodb.odm.document_manager

    auto_mapping: true
    mappings:
        AcmeDemoBundle: ~

Mapping:

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

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

    <model manager="odm" name="Document\User">
        <field name="profileContent" />
    </model>
</multi-model>