2017 © Pedro Peláez
 

symfony-bundle pool-dbm-bundle

Symfony2 Multi Doctrine Repositories Bundle

image

pokap/pool-dbm-bundle

Symfony2 Multi Doctrine Repositories Bundle

  • Wednesday, January 15, 2014
  • by pokap
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PokPoolDBMBundle

Requires at least PHP 5.3.3 with Symfony 2 library. Compatible PHP 5.4 too., (*1)

Build Status, (*2)

This bundle integrates Pool-DBM., (*3)

Usage

By default, the object is initialized with values defined in the configuration:, (*4)

``` yaml, (*5)

pok_pool_dbm: debug: %kernel.debug% managers: orm: id: doctrine.orm.entity_manager, (*6)

    odm:
        id: doctrine_mongodb.odm.document_manager

auto_mapping: true
mappings:
    AcmeDemoBundle: ~

Mapping: ``` xml <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>

The Versions