<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\RDVBillingRepository")
*/
class RDVBilling
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\RDV", inversedBy="RDVBillings", fetch="EAGER")
* @ORM\JoinColumn(name="rdv_id", referencedColumnName="id", onDelete="SET NULL")
*/
private $RDV;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Billing", inversedBy="RDVBillings")
*/
private $Billing;
public function __toString(){
return (string) $this->id;
}
public function getId(): ?int
{
return $this->id;
}
public function getRDV(): ?RDV
{
return $this->RDV;
}
public function setRDV(?RDV $RDV): self
{
$this->RDV = $RDV;
return $this;
}
public function getBilling(): ?Billing
{
return $this->Billing;
}
public function setBilling(?Billing $Billing): self
{
$this->Billing = $Billing;
return $this;
}
}