Skip to content

Commit 30ec232

Browse files
committed
Make property nullable
1 parent 296ab1d commit 30ec232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Fixtures/TestBundle/Entity/Issue6225/Bar6225.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct()
4040
private Uuid $id;
4141

4242
#[ORM\OneToOne(mappedBy: 'bar', cascade: ['persist', 'remove'])]
43-
private Foo6225 $foo;
43+
private ?Foo6225 $foo;
4444

4545
#[ORM\Column(length: 255)]
4646
#[Groups(['Foo:Write', 'Foo:Read'])]

0 commit comments

Comments
 (0)