<?php
namespace Products\NotificationsBundle\Entity;
use Cms\TenantBundle\Entity\TenantedEntity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(
* repositoryClass = "Products\NotificationsBundle\Doctrine\Repository\CheckupRelationshipRepository",
* )
* @ORM\Table(
* name = "notis__checkup_relationship",
* )
*/
class CheckupRelationship extends TenantedEntity
{
/**
* @var Checkup|null
*
* @ORM\ManyToOne(
* targetEntity = "Products\NotificationsBundle\Entity\Checkup",
* inversedBy = "relationships",
* )
* @ORM\JoinColumn(
* name = "checkup",
* referencedColumnName = "id",
* nullable = false,
* onDelete = "CASCADE",
* )
*/
protected ?Checkup $checkup = null;
/**
* @var ProfileRelationship|null
*
* @ORM\ManyToOne(
* targetEntity = "Products\NotificationsBundle\Entity\ProfileRelationship",
* )
* @ORM\JoinColumn(
* name = "relationship",
* referencedColumnName = "id",
* nullable = false,
* onDelete = "CASCADE",
* )
*/
protected ?ProfileRelationship $relationship = null;
/**
* @return Checkup|null
*/
public function getCheckup(): ?Checkup
{
return $this->checkup;
}
/**
* @param Checkup $checkup
* @return $this
*/
public function setCheckup(Checkup $checkup): self
{
$this->checkup = $checkup;
return $this;
}
/**
* @return ProfileRelationship|null
*/
public function getRelationship(): ?ProfileRelationship
{
return $this->relationship;
}
/**
* @param ProfileRelationship $relationship
* @return $this
*/
public function setRelationship(ProfileRelationship $relationship): self
{
$this->relationship = $relationship;
return $this;
}
}