Skip to content

Commit 33b6cea

Browse files
authored
require-dev compatibility for Doctrine ORM 3 (#2448)
1 parent e0436cc commit 33b6cea

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
"async-aws/simple-s3": "^1.0",
6868
"aws/aws-sdk-php": "^3.0",
6969
"dama/doctrine-test-bundle": "^8.0.1",
70-
"doctrine/doctrine-bundle": "^2.7",
70+
"doctrine/doctrine-bundle": "^2.11",
7171
"doctrine/mongodb-odm": "^2.4",
72-
"doctrine/orm": "^2.14",
72+
"doctrine/orm": "^2.16 || ^3.0",
7373
"friendsofphp/php-cs-fixer": "^3.4",
7474
"knplabs/knp-menu-bundle": "^3.0",
7575
"liip/imagine-bundle": "^2.0",

src/Resources/config/doctrine/BaseMedia.orm.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</field>
1515
<field name="width" column="width" type="integer" nullable="true"/>
1616
<field name="height" column="height" type="integer" nullable="true"/>
17-
<field name="length" column="length" type="decimal" nullable="true"/>
17+
<field name="length" column="length" type="decimal" nullable="true" precision="10"/>
1818
<field name="contentType" column="content_type" type="string" nullable="true" length="255"/>
1919
<field name="size" column="content_size" type="integer" nullable="true"/>
2020
<field name="copyright" column="copyright" type="string" nullable="true"/>

tests/App/config/config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ doctrine:
8080
orm:
8181
entity_managers:
8282
default:
83+
report_fields_where_declared: true
8384
mappings:
8485
SonataMediaBundle: null
8586
SonataMediaTest:

tests/custom_bootstrap.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,14 @@
2020
$kernel = new AppKernel($_SERVER['APP_ENV'] ?? 'test', (bool) ($_SERVER['APP_DEBUG'] ?? false));
2121
$application = new Application($kernel);
2222
$application->setAutoExit(false);
23+
$application->setCatchExceptions(false);
2324

2425
$input = new ArrayInput([
2526
'command' => 'doctrine:database:drop',
2627
'--force' => true,
2728
]);
2829
$application->run($input, new NullOutput());
2930

30-
$input = new ArrayInput([
31-
'command' => 'doctrine:database:create',
32-
'--no-interaction' => true,
33-
]);
34-
$application->run($input, new NullOutput());
35-
3631
$input = new ArrayInput([
3732
'command' => 'doctrine:schema:create',
3833
]);

0 commit comments

Comments
 (0)