<?php
namespace App\Entity;
use App\Repository\OrlProspectOnOrlOfficeRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass=OrlProspectOnOrlOfficeRepository::class)
*/
class OrlProspectOnOrlOffice
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\OrlOffice", inversedBy="orlProspectsOnOrlOffice", fetch="EAGER")
* @ORM\JoinColumn(nullable=false)
*/
private $orlOffice;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\OrlProspect", inversedBy="orlProspectsOnOrlOffice")
* @ORM\JoinColumn(nullable=false)
*/
private $orlProspect;
/**
* @ORM\Column(type="datetime")
* @Gedmo\Timestampable(on="create")
*/
private $created;
public function getId(): ?int
{
return $this->id;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getOrlOffice(): ?OrlOffice
{
return $this->orlOffice;
}
public function setOrlOffice(?OrlOffice $orlOffice): self
{
$this->orlOffice = $orlOffice;
return $this;
}
public function getOrlProspect(): ?OrlProspect
{
return $this->orlProspect;
}
public function setOrlProspect(?OrlProspect $orlProspect): self
{
$this->orlProspect = $orlProspect;
return $this;
}
}