src/Entity/ContactConference.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\ContactConferenceRepository;
  6. /**
  7.  * ContactConference
  8.  *
  9.  * @ORM\Table(name="contact_conference", indexes={@ORM\Index(name="conference_id", columns={"conference_id"}), @ORM\Index(name="contact_id", columns={"contact_id"})})
  10.  * @ORM\Entity(repositoryClass=ContactConferenceRepository::class)
  11.  */
  12. class ContactConference
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer", nullable=false)
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="IDENTITY")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var Conference
  24.      *
  25.      * @ORM\ManyToOne(targetEntity="Conference", inversedBy="contactConference")
  26.      * @ORM\JoinColumns({
  27.      *   @ORM\JoinColumn(name="conference_id", referencedColumnName="id")
  28.      * })
  29.      */
  30.     private $conference;
  31.     /**
  32.      * @var Contact
  33.      *
  34.      * @ORM\ManyToOne(targetEntity="Contact")
  35.      * @ORM\JoinColumns({
  36.      *   @ORM\JoinColumn(name="contact_id", referencedColumnName="id")
  37.      * })
  38.      */
  39.     private $contact;
  40.     /**
  41.      * @var string|null
  42.      *
  43.      * @ORM\Column(name="topic", type="string", length=65535, nullable=true, options={"default"="NULL"})
  44.      */
  45.     private $topic null;
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getTopic(): ?string
  51.     {
  52.         return $this->topic;
  53.     }
  54.     public function setTopic(?string $topic): self
  55.     {
  56.         $this->topic $topic;
  57.         return $this;
  58.     }
  59.     public function getConference(): ?Conference
  60.     {
  61.         return $this->conference;
  62.     }
  63.     public function setConference(?Conference $conference): self
  64.     {
  65.         $this->conference $conference;
  66.         return $this;
  67.     }
  68.     public function getContact(): ?Contact
  69.     {
  70.         return $this->contact;
  71.     }
  72.     public function setContact(?Contact $contact): self
  73.     {
  74.         $this->contact $contact;
  75.         return $this;
  76.     }
  77. }