Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Updated reference articles to Symfony 4#8643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 5 commits intosymfony:4.0fromjaviereguiluz:update_reference
Nov 27, 2017
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Remove App\Bridge\Doctrine\ namespace
  • Loading branch information
@javiereguiluz
javiereguiluz committedNov 24, 2017
commitef2a0449cf58558269f7777cda07bb7579bdefdc
40 changes: 20 additions & 20 deletionsreference/configuration/doctrine.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,7 +20,7 @@ Full Default Configuration
# A collection of custom types
# Example
some_custom_type:
class: App\Bridge\Doctrine\DBAL\MyCustomType
class: App\DBAL\MyCustomType
commented: true


Expand DownExpand Up@@ -163,17 +163,17 @@ Full Default Configuration
# a collection of string functions
string_functions:
# example
# test_string: App\Bridge\Doctrine\DQL\StringFunction
# test_string: App\DQL\StringFunction

# a collection of numeric functions
numeric_functions:
# example
# test_numeric: App\Bridge\Doctrine\DQL\NumericFunction
# test_numeric: App\DQL\NumericFunction

# a collection of datetime functions
datetime_functions:
# example
# test_datetime: App\Bridge\Doctrine\DQL\DatetimeFunction
# test_datetime: App\DQL\DatetimeFunction

# Register SQL Filters in the entity manager
filters:
Expand DownExpand Up@@ -204,22 +204,22 @@ Full Default Configuration
user="user"
password="secret"
driver="pdo_mysql"
driver-class="App\Bridge\Doctrine\DBAL\MyDatabaseDriver"
driver-class="App\DBAL\MyDatabaseDriver"
path="%kernel.project_dir%/var/data/data.sqlite"
memory="true"
unix-socket="/tmp/mysql.sock"
wrapper-class="App\Bridge\Doctrine\DBAL\MyConnectionWrapper"
wrapper-class="App\DBAL\MyConnectionWrapper"
charset="UTF8"
logging="%kernel.debug%"
platform-service="App\Bridge\Doctrine\DBAL\MyDatabasePlatformService"
platform-service="App\DBAL\MyDatabasePlatformService"
server-version="5.6"
keep-slave="false"
>
<doctrine:option key="foo">bar</doctrine:option>
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
</doctrine:connection>
<doctrine:connection name="conn1" />
<doctrine:type name="custom">App\Bridge\Doctrine\DBAL\MyCustomType</doctrine:type>
<doctrine:type name="custom">App\DBAL\MyCustomType</doctrine:type>
</doctrine:dbal>

<doctrine:orm
Expand DownExpand Up@@ -247,15 +247,15 @@ Full Default Configuration

<doctrine:dql>
<doctrine:string-function name="test_string">
App\Bridge\Doctrine\DQL\StringFunction
App\DQL\StringFunction
</doctrine:string-function>

<doctrine:numeric-function name="test_numeric">
App\Bridge\Doctrine\DQL\NumericFunction
App\DQL\NumericFunction
</doctrine:numeric-function>

<doctrine:datetime-function name="test_datetime">
App\Bridge\Doctrine\DQL\DatetimeFunction
App\DQL\DatetimeFunction
</doctrine:datetime-function>
</doctrine:dql>
</doctrine:entity-manager>
Expand DownExpand Up@@ -301,23 +301,23 @@ The following block shows all possible configuration keys:
password: secret
driver: pdo_mysql
# the DBAL driverClass option
driver_class: App\Bridge\Doctrine\DBAL\MyDatabaseDriver
driver_class: App\DBAL\MyDatabaseDriver
# the DBAL driverOptions option
options:
foo: bar
path: '%kernel.project_dir%/app/data/data.sqlite'
memory: true
unix_socket: /tmp/mysql.sock
# the DBAL wrapperClass option
wrapper_class: App\Bridge\Doctrine\DBAL\MyConnectionWrapper
wrapper_class: App\DBAL\MyConnectionWrapper
charset: UTF8
logging: '%kernel.debug%'
platform_service: App\Bridge\Doctrine\DBAL\MyDatabasePlatformService
platform_service: App\DBAL\MyDatabasePlatformService
server_version: 5.6
mapping_types:
enum: string
types:
custom: App\Bridge\Doctrine\DBAL\MyCustomType
custom: App\DBAL\MyCustomType

.. code-block:: xml

Expand All@@ -339,19 +339,19 @@ The following block shows all possible configuration keys:
user="user"
password="secret"
driver="pdo_mysql"
driver-class="App\Bridge\Doctrine\DBAL\MyDatabaseDriver"
driver-class="App\DBAL\MyDatabaseDriver"
path="%kernel.project_dir%/var/data/data.sqlite"
memory="true"
unix-socket="/tmp/mysql.sock"
wrapper-class="App\Bridge\Doctrine\DBAL\MyConnectionWrapper"
wrapper-class="App\DBAL\MyConnectionWrapper"
charset="UTF8"
logging="%kernel.debug%"
platform-service="App\Bridge\Doctrine\DBAL\MyDatabasePlatformService"
platform-service="App\DBAL\MyDatabasePlatformService"
server-version="5.6">

<doctrine:option key="foo">bar</doctrine:option>
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
<doctrine:type name="custom">App\Bridge\Doctrine\DBAL\MyCustomType</doctrine:type>
<doctrine:type name="custom">App\DBAL\MyCustomType</doctrine:type>
</doctrine:dbal>
</doctrine:config>
</container>
Expand DownExpand Up@@ -480,7 +480,7 @@ The following example shows an overview of the caching configurations:
# the 'service' type requires to define the 'id' option too
query_cache_driver:
type: service
id: App\Bridge\Doctrine\ORM\MyCacheService
id: App\ORM\MyCacheService

Mapping Configuration
~~~~~~~~~~~~~~~~~~~~~
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp