orm.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" ?>
  2. <container xmlns="http://www.symfony-project.org/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
  5. <parameters>
  6. <parameter key="doctrine.orm.entity_manager.class">Doctrine\ORM\EntityManager</parameter>
  7. <parameter key="doctrine.orm.metadata_driver_impl.class">Doctrine\ORM\Mapping\Driver\XmlDriver</parameter>
  8. <parameter key="doctrine.orm.cache.class">Doctrine\Common\Cache\ArrayCache</parameter>
  9. </parameters>
  10. <services>
  11. <service id="doctrine.orm.entity_manager" class="%doctrine.orm.entity_manager.class%" constructor="create">
  12. <argument type="service" id="doctrine.dbal.connection" />
  13. <argument type="service" id="doctrine.orm.configuration" />
  14. </service>
  15. <service id="doctrine.orm.metadata_driver_impl" class="%doctrine.orm.metadata_driver_impl.class%">
  16. <argument>%doctrine.orm.metadata_driver_impl.dirs%</argument>
  17. </service>
  18. <service id="doctrine.orm.cache" class="%doctrine.orm.cache.class%" />
  19. <service id="doctrine.orm.configuration" class="Doctrine\ORM\Configuration">
  20. <call method="setMetadataCacheImpl"><argument type="service" id="doctrine.orm.cache" /></call>
  21. <call method="setQueryCacheImpl"><argument type="service" id="doctrine.orm.cache" /></call>
  22. <call method="setResultCacheImpl"><argument type="service" id="doctrine.orm.cache" /></call>
  23. <call method="setMetadataDriverImpl"><argument type="service" id="doctrine.orm.metadata_driver_impl" /></call>
  24. <call method="setProxyDir"><argument>%kernel.cache_dir%/doctrine/Proxies</argument></call>
  25. <call method="setProxyNamespace"><argument>Proxies</argument></call>
  26. <call method="setAutoGenerateProxyClasses"><argument>true</argument></call>
  27. </service>
  28. </services>
  29. </container>