-
-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from DHager/default_table_options
Allow defaultTableOptions to be configured
- Loading branch information
Showing
7 changed files
with
111 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Tests/DependencyInjection/Fixtures/config/xml/orm_single_em_default_table_options.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?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"> | ||
|
||
<config> | ||
<dbal default-connection="default"> | ||
<connection name="default" dbname="db"> | ||
<default-table-option name="charset">utf8mb4</default-table-option> | ||
<default-table-option name="collate">utf8mb4_unicode_ci</default-table-option> | ||
<default-table-option name="engine">InnoDB</default-table-option> | ||
</connection> | ||
</dbal> | ||
|
||
<orm> | ||
<mapping name="AnnotationsBundle" /> | ||
<mapping name="YamlBundle" dir="Resources/config/doctrine" alias="yml" /> | ||
<mapping name="manual" type="xml" prefix="Fixtures\Bundles\XmlBundle" | ||
dir="%kernel.root_dir%/Tests/DependencyInjection/Fixtures/Bundles/XmlBundle/Resources/config/doctrine" | ||
alias="TestAlias" | ||
/> | ||
</orm> | ||
</config> | ||
</srv:container> |
22 changes: 22 additions & 0 deletions
22
Tests/DependencyInjection/Fixtures/config/yml/orm_single_em_default_table_options.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
doctrine: | ||
dbal: | ||
default_connection: default | ||
connections: | ||
default: | ||
dbname: db | ||
default_table_options: | ||
charset: utf8mb4 | ||
collate: utf8mb4_unicode_ci | ||
engine: InnoDB | ||
|
||
orm: | ||
mappings: | ||
AnnotationsBundle: ~ | ||
YamlBundle: | ||
dir: Resources/config/doctrine | ||
alias: yml | ||
manual: | ||
type: xml | ||
prefix: Fixtures\Bundles\XmlBundle | ||
dir: %kernel.root_dir%/Tests/DependencyInjection/Fixtures/Bundles/XmlBundle/Resources/config/doctrine | ||
alias: TestAlias |