Skip to content

Commit bacd7df

Browse files
committed
use json type instead of removed array type
1 parent 2c5898c commit bacd7df

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
3.1.0
5+
-----
6+
7+
* Symfony 7 support
8+
* Doctrine ORM 3 support
9+
If you use the ORM route entity, you need to migrate your database configuration as the array fields needed to be changed to the `json` type (because `array` has been removed)
10+
411
3.0.2
512
-----
613

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"doctrine/data-fixtures": "^1.0.0",
2424
"doctrine/doctrine-bundle": "^2.0",
2525
"doctrine/orm": "^2.9 || ^3.0",
26-
"doctrine/phpcr-bundle": "^2.3 || ^3.0",
27-
"doctrine/phpcr-odm": "^1.4 || ^2.0",
26+
"doctrine/phpcr-bundle": "^2.5 || ^3.0",
27+
"doctrine/phpcr-odm": "^1.8 || ^2.0",
2828
"jackalope/jackalope-doctrine-dbal": "^1.3 || ^2.0",
2929
"matthiasnoback/symfony-dependency-injection-test": "^4.1.0 || ^5.1.0",
3030
"matthiasnoback/symfony-config-test": "^4.1.0 || ^5.1.0",
@@ -45,10 +45,9 @@
4545
"doctrine/orm": "To enable support for the ORM entities (^2.5)"
4646
},
4747
"conflict": {
48-
"doctrine/phpcr-odm": "<1.4",
4948
"doctrine/common": "<3.1.1",
5049
"doctrine/persistence": "<1.3.0",
51-
"phpunit/phpunit": "<6"
50+
"symfony/security-core": "<6.4.0"
5251
},
5352
"autoload": {
5453
"psr-4": {

src/Resources/config/doctrine-base/Symfony.Component.Routing.Route.orm.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
<mapped-superclass name="Symfony\Component\Routing\Route">
66
<field name="host" type="string"/>
7-
<field name="schemes" type="array"/>
8-
<field name="methods" type="array"/>
9-
<field name="defaults" type="array"/>
10-
<field name="requirements" type="array"/>
11-
<field name="options" type="array"/>
7+
<field name="schemes" type="json"/>
8+
<field name="methods" type="json"/>
9+
<field name="defaults" type="json"/>
10+
<field name="requirements" type="json"/>
11+
<field name="options" type="json"/>
1212
<field name="condition" column="`condition`" type="string"/>
1313
</mapped-superclass>
1414

0 commit comments

Comments
 (0)