electricmaxxx/doctrine-orm-phpcr-adapter-bundle

Bundle to use the orm-odm-adapter library

dev-master / 1.0.x-dev 2014-12-15 23:15 UTC

This package is auto-updated.

Last update: 2024-10-12 04:00:04 UTC


README

DoctrineOrmPhpcrAdapterBundle for the Symfony Framework.

This bundle integrates the Doctrine ORM-ODM-Adapter into Symfony2.

Build Status

What is Doctrine ORM-ODM-Adapter?

The Doctrine Project is the home of a selected set of PHP libraries primarily focused on providing persistence services and related functionality. Ths ORM-ODM-Adapter provides the chance to reference objects between different doctrine implementations.

Documentation

Minimum Configuration

doctrine_orm_phpcr_adapter:
    managers:
        reference-phpcr:
            defaul: doctrine_phpcr.odm.default_document_manager
        reference-dbal-orm: 
            default: doctrine.orm.default_entity_manager
    adapters:
        mapping: true
        auto_generate_proxy_classes: %kernel.debug%

You can add some mapping for the documents/entities as you used to know it in the ORM/ODM:

doctrine_orm_phpcr_adapter:
    ...
    mappings:
        some_name:
            type: annotation
            dir: ../Entity
            is_bundle: true
             

Your will find the mapping information in the (library)[https://github.com/ElectricMaxxx/DoctrineOrmOdmAdapter]