Skip to content

Commit

Permalink
feat(o10r-symfony-template-154): Upgrade doctrine/orm to 3.* version
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiidonii committed Jun 4, 2024
1 parent 8ee3064 commit 8ec5b10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Manager/SqliteDatabaseManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private function adaptDatabaseSchemaToSqlite(Schema $schema): void
if ($column->hasPlatformOption('collation')) {
$column->setPlatformOptions(array_diff_key(
$column->getPlatformOptions(),
['collation' => true]
['collation' => 'utf8_unicode_ci']
));
}
}
Expand Down
3 changes: 3 additions & 0 deletions tests/Functional/App/config/doctrine.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
$containerConfigurator->extension('doctrine', [
'dbal' => [
'url' => 'sqlite:///%kernel.cache_dir%/data.db',
'options' => [
'collation' => 'utf8mb4_unicode_ci',
],
],
'orm' => [
'auto_generate_proxy_classes' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<entity name="BehatDoctrineFixtures\Tests\Functional\App\Entity\BaseEntity" table="base_entity">
<id name="id" type="integer">
<generator strategy="AUTO"/>
<options>
<option name="collation">utf8_unicode_ci</option>
</options>
</id>
</entity>
</doctrine-mapping>

0 comments on commit 8ec5b10

Please sign in to comment.