<?xml version="1.0" ?>

<srv:container xmlns="http://symfony.com/schema/dic/doctrine"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:srv="http://symfony.com/schema/dic/services"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
                        http://symfony.com/schema/dic/doctrine http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">

    <srv:parameters>
        <srv:parameter key="doctrine.orm.proxy_namespace">Proxies</srv:parameter>
    </srv:parameters>

    <config>
        <dbal default-connection="conn1">
            <connection
                name="conn1"
                driver="pdo_sqlite"
                dbname="sqlite_db"
                user="sqlite_user"
                password="sqlite_s3cr3t"
                memory="true" />
            <connection
                name="conn2"
                driver="pdo_sqlite"
                dbname="sqlite_db"
                user="sqlite_user"
                password="sqlite_s3cr3t"
                memory="true" />
        </dbal>

        <orm default-entity-manager="em2" auto-generate-proxy-classes="true">
            <entity-manager name="em1" metadata-cache-driver="xcache" connection="conn1">
                <mapping name="YamlBundle" />
            </entity-manager>
            <entity-manager name="em2" connection="conn2" metadata-cache-driver="apc">
                <mapping name="YamlBundle" />
            </entity-manager>
        </orm>
    </config>
</srv:container>
