Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9e95cb

Browse files
authored
fix: doctrine deprecation (#961)
1 parent c8256e3 commit f9e95cb

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
php: [ 8.2, 8.3, 8.4 ]
17-
symfony: [ 6.4.*, 7.2.*, 7.3.*, 8.0.*-dev ]
17+
symfony: [ 6.4.*, 7.3.*, 8.0.*-dev ]
1818
database: [ mysql|mongo ]
1919
phpunit: [ 11, 12 ]
2020

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"symfony/polyfill-php84": "^1.32",
2323
"symfony/property-access": "^6.4|^7.0|^8.0",
2424
"symfony/property-info": "^6.4|^7.0|^8.0",
25-
"symfony/var-exporter": "^6.4.9|~7.0.9|^7.1.2|^8.0.0",
25+
"symfony/var-exporter": "^6.4.9|~7.0.9|^7.1.2|^8.0",
2626
"zenstruck/assert": "^1.4"
2727
},
2828
"require-dev": {

phpunit-deprecation-baseline.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,4 @@
66
<issue><![CDATA[Since symfony/var-exporter 7.3: Generating lazy proxy for class "Zenstruck\Foundry\Tests\Integration\ForceFactoriesTraitUsage\SomeObject" is deprecated; leverage native lazy objects instead.]]></issue>
77
</line>
88
</file>
9-
<file path="vendor/doctrine/deprecations/src/Deprecation.php">
10-
<line number="208" hash="815824609bbd80ce3a5cc8a6a19c2e6dd0c6985c">
11-
<issue><![CDATA[Using nullable columns in a primary key index is deprecated. (Table.php:182 called by Table.php:197, https://github.com/doctrine/dbal/pull/6787, package doctrine/dbal)]]></issue>
12-
</line>
13-
</file>
149
</files>

tests/Fixture/Entity/Contact.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,15 @@ class Contact extends Base
3434

3535
/** @var Collection<int,Tag> */
3636
#[ORM\ManyToMany(targetEntity: Tag::class, inversedBy: 'contacts')]
37+
#[ORM\JoinColumn(nullable: false)]
38+
#[ORM\InverseJoinColumn(nullable: false)]
3739
protected Collection $tags;
3840

3941
/** @var Collection<int,Tag> */
4042
#[ORM\ManyToMany(targetEntity: Tag::class, inversedBy: 'secondaryContacts')]
4143
#[ORM\JoinTable(name: 'category_tag_standard_secondary')]
44+
#[ORM\JoinColumn(nullable: false)]
45+
#[ORM\InverseJoinColumn(nullable: false)]
4246
protected Collection $secondaryTags;
4347

4448
#[ORM\OneToOne(targetEntity: Address::class, inversedBy: 'contact')]

0 commit comments

Comments
 (0)