Skip to content

Commit 3f2d5d8

Browse files
committed
remove deprecated nullable option from primary key columns
1 parent 5aa2b4b commit 3f2d5d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Bridge/Doctrine/Tests/Fixtures/CompositeObjectNoToStringIdEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class CompositeObjectNoToStringIdEntity
2222
public function __construct(
2323
#[ORM\Id]
2424
#[ORM\ManyToOne(cascade: ['persist'])]
25-
#[ORM\JoinColumn(name: 'object_one_id', nullable: false)]
25+
#[ORM\JoinColumn(name: 'object_one_id')]
2626
protected SingleIntIdNoToStringEntity $objectOne,
2727

2828
#[ORM\Id]
2929
#[ORM\ManyToOne(cascade: ['persist'])]
30-
#[ORM\JoinColumn(name: 'object_two_id', nullable: false)]
30+
#[ORM\JoinColumn(name: 'object_two_id')]
3131
protected SingleIntIdNoToStringEntity $objectTwo,
3232
) {
3333
}

src/Symfony/Bridge/Doctrine/Tests/Fixtures/SingleAssociationToIntIdEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SingleAssociationToIntIdEntity
2222
{
2323
public function __construct(
2424
#[Id, OneToOne(cascade: ['ALL'])]
25-
#[JoinColumn(nullable: false)]
25+
#[JoinColumn()]
2626
protected SingleIntIdNoToStringEntity $entity,
2727

2828
#[Column(nullable: true)]

0 commit comments

Comments
 (0)