@@ -45,6 +45,10 @@
|
||||
|
||||
<!-- listeners -->
|
||||
<parameter key="doctrine.orm.listeners.resolve_target_entity.class">Doctrine\ORM\Tools\ResolveTargetEntityListener</parameter>
|
||||
|
||||
<!-- naming strategy -->
|
||||
<parameter key="doctrine.orm.naming_strategy.default.class">Doctrine\ORM\Mapping\DefaultNamingStrategy</parameter>
|
||||
<parameter key="doctrine.orm.naming_strategy.underscore.class">Doctrine\ORM\Mapping\UnderscoreNamingStrategy</parameter>
|
||||
</parameters>
|
||||
|
||||
<services>
|
||||
@@ -93,5 +97,9 @@
|
||||
|
||||
<!-- listeners -->
|
||||
<service id="doctrine.orm.listeners.resolve_target_entity" class="%doctrine.orm.listeners.resolve_target_entity.class%" public="false" />
|
||||
|
||||
<!-- naming strategy -->
|
||||
<service id="doctrine.orm.naming_strategy.default" class="%doctrine.orm.naming_strategy.default.class%" public="false" />
|
||||
<service id="doctrine.orm.naming_strategy.underscore" class="%doctrine.orm.naming_strategy.underscore.class%" public="false" />
|
||||
</services>
|
||||
</container>
|
||||
|
@@ -19,6 +19,7 @@
|
||||
<xsd:attribute name="driver-class" type="xsd:string" />
|
||||
<xsd:attribute name="wrapper-class" type="xsd:string" />
|
||||
<xsd:attribute name="platform-service" type="xsd:string" />
|
||||
<xsd:attribute name="schema-filter" type="xsd:string" />
|
||||
<xsd:attribute name="logging" type="xsd:string" default="false" />
|
||||
<xsd:attribute name="profiling" type="xsd:string" default="false" />
|
||||
<xsd:attributeGroup ref="driver-config" />
|
||||
@@ -161,6 +162,7 @@
|
||||
<xsd:attribute name="result-cache-driver" type="xsd:string" />
|
||||
<xsd:attribute name="metadata-cache-driver" type="xsd:string" />
|
||||
<xsd:attribute name="query-cache-driver" type="xsd:string" />
|
||||
<xsd:attribute name="naming-strategy" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="filter">
|
||||
|
@@ -30,6 +30,7 @@ Configuration Reference
|
||||
charset: UTF8
|
||||
logging: %kernel.debug%
|
||||
platform_service: MyOwnDatabasePlatformService
|
||||
schema_filter: ^sf2_
|
||||
mapping_types:
|
||||
enum: string
|
||||
conn1:
|
||||
@@ -64,6 +65,7 @@ Configuration Reference
|
||||
test_numeric: Acme\HelloBundle\DQL\NumericFunction
|
||||
datetime_functions:
|
||||
test_datetime: Acme\HelloBundle\DQL\DatetimeFunction
|
||||
naming_strategy: doctrine.orm.naming_strategy.default # Service Reference
|
||||
em2:
|
||||
# ...
|
||||
|
||||
@@ -93,6 +95,7 @@ Configuration Reference
|
||||
charset="UTF8"
|
||||
logging="%kernel.debug%"
|
||||
platform-service="MyOwnDatabasePlatformService"
|
||||
schema-filter="^sf2_"
|
||||
>
|
||||
<doctrine:option key="foo">bar</doctrine:option>
|
||||
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
|
||||
@@ -102,7 +105,7 @@ Configuration Reference
|
||||
</doctrine:dbal>
|
||||
|
||||
<doctrine:orm default-entity-manager="default" auto-generate-proxy-classes="false" proxy-namespace="Proxies" proxy-dir="%kernel.cache_dir%/doctrine/orm/Proxies">
|
||||
<doctrine:entity-manager name="default" query-cache-driver="array" result-cache-driver="array" connection="conn1" class-metadata-factory-name="Doctrine\ORM\Mapping\ClassMetadataFactory">
|
||||
<doctrine:entity-manager name="default" query-cache-driver="array" result-cache-driver="array" connection="conn1" class-metadata-factory-name="Doctrine\ORM\Mapping\ClassMetadataFactory" naming-strategy="doctrine.orm.naming_strategy.default">
|
||||
<doctrine:metadata-cache-driver type="memcache" host="localhost" port="11211" instance-class="Memcache" class="Doctrine\Common\Cache\MemcacheCache" />
|
||||
<doctrine:mapping name="AcmeHelloBundle" />
|
||||
<doctrine:dql>
|
||||
@@ -241,6 +244,7 @@ can configure. The following block shows all possible configuration keys:
|
||||
charset: UTF8
|
||||
logging: %kernel.debug%
|
||||
platform_service: MyOwnDatabasePlatformService
|
||||
schema_filter: ^sf2_
|
||||
mapping_types:
|
||||
enum: string
|
||||
types:
|
||||
@@ -268,6 +272,7 @@ can configure. The following block shows all possible configuration keys:
|
||||
charset="UTF8"
|
||||
logging="%kernel.debug%"
|
||||
platform-service="MyOwnDatabasePlatformService"
|
||||
schema-filter="^sf2_"
|
||||
>
|
||||
<doctrine:option key="foo">bar</doctrine:option>
|
||||
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{% block toolbar %}
|
||||
{% set icon %}
|
||||
<img width="20" height="28" alt="Database" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAcCAYAAABh2p9gAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQRJREFUeNpi/P//PwM1ARMDlcGogZQDlpMnT7pxc3NbA9nhQKxOpL5rQLwJiPeBsI6Ozl+YBOOOHTv+AOllQNwtLS39F2owKYZ/gRq8G4i3ggxEToggWzvc3d2Pk+1lNL4fFAs6ODi8JzdS7mMRVyDVoAMHDsANdAPiOCC+jCQvQKqBQB/BDbwBxK5AHA3E/kB8nKJkA8TMQBwLxaBIKQbi70AvTADSBiSadwFXpCikpKQU8PDwkGTaly9fHFigkaKIJid4584dkiMFFI6jkTJII0WVmpHCAixZQEXWYhDeuXMnyLsVlEQKI45qFBQZ8eRECi4DBaAlDqle/8A48ip6gAADANdQY88Uc0oGAAAAAElFTkSuQmCC"/>
|
||||
<span class="sf-toolbar-status">{{ collector.querycount }}</span>
|
||||
<span class="sf-toolbar-status{% if 50 < collector.querycount %} sf-toolbar-status-yellow{% endif %}">{{ collector.querycount }}</span>
|
||||
<span class="sf-toolbar-info-piece-additional-detail">in {{ '%0.2f'|format(collector.time * 1000) }} ms</span>
|
||||
{% endset %}
|
||||
{% set text %}
|
||||
|
Reference in New Issue
Block a user