Mark newsletter in statistics click nullable

[MAILPOET-2818]
This commit is contained in:
Rostislav Wolny
2020-04-06 17:21:27 +02:00
committed by Veljko V
parent 66d4a5caac
commit b654b071b0

View File

@@ -40,7 +40,7 @@ class StatisticsClickEntity {
/** /**
* @ORM\ManyToOne(targetEntity="MailPoet\Entities\NewsletterLinkEntity", inversedBy="clicks") * @ORM\ManyToOne(targetEntity="MailPoet\Entities\NewsletterLinkEntity", inversedBy="clicks")
* @var NewsletterLinkEntity * @var NewsletterLinkEntity|null
*/ */
private $link; private $link;
@@ -67,7 +67,7 @@ class StatisticsClickEntity {
} }
/** /**
* @return NewsletterLinkEntity * @return NewsletterLinkEntity|null
*/ */
public function getLink() { public function getLink() {
$this->safelyLoadToOneAssociation('link'); $this->safelyLoadToOneAssociation('link');