-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
/
orm.xml
67 lines (57 loc) · 3.97 KB
/
orm.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" ?>
<container xmlns="http://www.symfony-project.org/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="doctrine.orm.default_entity_manager">default</parameter>
<parameter key="doctrine.orm.metadata_cache_driver">array</parameter>
<parameter key="doctrine.orm.query_cache_driver">array</parameter>
<parameter key="doctrine.orm.result_cache_driver">array</parameter>
<parameter key="doctrine.orm.configuration_class">Doctrine\ORM\Configuration</parameter>
<parameter key="doctrine.orm.entity_manager_class">Doctrine\ORM\EntityManager</parameter>
<!-- proxies -->
<parameter key="doctrine.orm.proxy_namespace">Proxies</parameter>
<parameter key="doctrine.orm.auto_generate_proxy_classes">false</parameter>
<!-- cache -->
<parameter key="doctrine.orm.cache.array_class">Doctrine\Common\Cache\ArrayCache</parameter>
<parameter key="doctrine.orm.cache.apc_class">Doctrine\Common\Cache\ApcCache</parameter>
<parameter key="doctrine.orm.cache.memcache_class">Doctrine\Common\Cache\MemcacheCache</parameter>
<parameter key="doctrine.orm.cache.memcache_host">localhost</parameter>
<parameter key="doctrine.orm.cache.memcache_port">11211</parameter>
<parameter key="doctrine.orm.cache.memcache_instance_class">Memcache</parameter>
<parameter key="doctrine.orm.cache.xcache_class">Doctrine\Common\Cache\XcacheCache</parameter>
<!-- metadata -->
<parameter key="doctrine.orm.metadata.driver_chain_class">Doctrine\ORM\Mapping\Driver\DriverChain</parameter>
<parameter key="doctrine.orm.metadata.annotation_class">Doctrine\ORM\Mapping\Driver\AnnotationDriver</parameter>
<parameter key="doctrine.orm.metadata.annotation_reader_class">Doctrine\Common\Annotations\AnnotationReader</parameter>
<parameter key="doctrine.orm.metadata.annotation_default_namespace">Doctrine\ORM\Mapping\</parameter>
<parameter key="doctrine.orm.metadata.xml_class">Doctrine\ORM\Mapping\Driver\XmlDriver</parameter>
<parameter key="doctrine.orm.metadata.yml_class">Doctrine\ORM\Mapping\Driver\YamlDriver</parameter>
<!-- directories -->
<parameter key="doctrine.orm.metadata_driver.mapping_dirs" type="collection"></parameter>
<parameter key="doctrine.orm.xml_mapping_dirs">%doctrine.orm.metadata_driver.mapping_dirs%</parameter>
<parameter key="doctrine.orm.yml_mapping_dirs">%doctrine.orm.metadata_driver.mapping_dirs%</parameter>
<parameter key="doctrine.orm.metadata_driver.entity_dirs" type="collection"></parameter>
</parameters>
<services>
<!--- Annotation Metadata Driver Service -->
<service id="doctrine.orm.metadata_driver.annotation" class="%doctrine.orm.metadata.annotation_class%">
<argument type="service" id="doctrine.orm.metadata_driver.annotation.reader" />
<argument>%doctrine.orm.metadata_driver.entity_dirs%</argument>
</service>
<service id="doctrine.orm.metadata_driver.annotation.reader" class="%doctrine.orm.metadata.annotation_reader_class%">
<call method="setAnnotationNamespaceAlias">
<argument>Doctrine\ORM\Mapping\</argument>
<argument>orm</argument>
</call>
</service>
<!--- XML Metadata Driver Service -->
<service id="doctrine.orm.metadata_driver.xml" class="%doctrine.orm.metadata.xml_class%">
<argument>%doctrine.orm.metadata_driver.mapping_dirs%</argument>
</service>
<!--- YAML Metadata Driver Service -->
<service id="doctrine.orm.metadata_driver.yml" class="%doctrine.orm.metadata.yml_class%">
<argument>%doctrine.orm.metadata_driver.mapping_dirs%</argument>
</service>
</services>
</container>