pokap / pool-dbm-bundle
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
Requires
- php: >=5.3.3
- pokap/pool-dbm: 1.*
- symfony/doctrine-bridge: 2.*
- symfony/framework-bundle: 2.*
Requires (Dev)
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.
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>