Skip to content

Commit b3b7847

Browse files
minor #61450 [DoctrineBridge] remove deprecated nullable option from primary key columns (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [DoctrineBridge] remove deprecated nullable option from primary key columns | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT see doctrine/orm#12126 Commits ------- 3f2d5d8 remove deprecated nullable option from primary key columns
2 parents 5aa2b4b + 3f2d5d8 commit b3b7847

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)