<?php
declare(strict_types=1);
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\ContactConferenceRepository;
/**
* ContactConference
*
* @ORM\Table(name="contact_conference", indexes={@ORM\Index(name="conference_id", columns={"conference_id"}), @ORM\Index(name="contact_id", columns={"contact_id"})})
* @ORM\Entity(repositoryClass=ContactConferenceRepository::class)
*/
class ContactConference
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var Conference
*
* @ORM\ManyToOne(targetEntity="Conference", inversedBy="contactConference")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="conference_id", referencedColumnName="id")
* })
*/
private $conference;
/**
* @var Contact
*
* @ORM\ManyToOne(targetEntity="Contact")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="contact_id", referencedColumnName="id")
* })
*/
private $contact;
/**
* @var string|null
*
* @ORM\Column(name="topic", type="string", length=65535, nullable=true, options={"default"="NULL"})
*/
private $topic = null;
public function getId(): ?int
{
return $this->id;
}
public function getTopic(): ?string
{
return $this->topic;
}
public function setTopic(?string $topic): self
{
$this->topic = $topic;
return $this;
}
public function getConference(): ?Conference
{
return $this->conference;
}
public function setConference(?Conference $conference): self
{
$this->conference = $conference;
return $this;
}
public function getContact(): ?Contact
{
return $this->contact;
}
public function setContact(?Contact $contact): self
{
$this->contact = $contact;
return $this;
}
}