Skip to content

Commit 8ec5b10

Browse files
committed
feat(o10r-symfony-template-154): Upgrade doctrine/orm to 3.* version
1 parent 8ee3064 commit 8ec5b10

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/Database/Manager/SqliteDatabaseManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private function adaptDatabaseSchemaToSqlite(Schema $schema): void
111111
if ($column->hasPlatformOption('collation')) {
112112
$column->setPlatformOptions(array_diff_key(
113113
$column->getPlatformOptions(),
114-
['collation' => true]
114+
['collation' => 'utf8_unicode_ci']
115115
));
116116
}
117117
}

tests/Functional/App/config/doctrine.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
$containerConfigurator->extension('doctrine', [
99
'dbal' => [
1010
'url' => 'sqlite:///%kernel.cache_dir%/data.db',
11+
'options' => [
12+
'collation' => 'utf8mb4_unicode_ci',
13+
],
1114
],
1215
'orm' => [
1316
'auto_generate_proxy_classes' => true,

tests/Functional/App/config/doctrine_entity/BaseEntity.orm.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<entity name="BehatDoctrineFixtures\Tests\Functional\App\Entity\BaseEntity" table="base_entity">
66
<id name="id" type="integer">
77
<generator strategy="AUTO"/>
8+
<options>
9+
<option name="collation">utf8_unicode_ci</option>
10+
</options>
811
</id>
912
</entity>
1013
</doctrine-mapping>

0 commit comments

Comments
 (0)