Skip to content

Commit 4bc79d7

Browse files
committed
allow nullable targetPropertyName
1 parent d24e955 commit 4bc79d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Doctrine/BaseRelation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ public function setTargetClassName(string $targetClassName): self
5050
return $this;
5151
}
5252

53-
public function getTargetPropertyName(): string
53+
public function getTargetPropertyName(): ?string
5454
{
5555
return $this->targetPropertyName;
5656
}
5757

58-
public function setTargetPropertyName(string $targetPropertyName): self
58+
public function setTargetPropertyName(?string $targetPropertyName): self
5959
{
6060
$this->targetPropertyName = $targetPropertyName;
6161

0 commit comments

Comments
 (0)