src/Entity/UserInvoice.php line 10
<?phpnamespace App\Entity;use App\Repository\UserInvoiceRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UserInvoiceRepository::class)]class UserInvoice{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'userInvoices')]#[ORM\JoinColumn(name:"user_id", referencedColumnName: "id", nullable: true)]private ?User $user = null;#[ORM\OneToOne(inversedBy: 'userInvoice', cascade: ['persist', 'remove'])]#[ORM\JoinColumn(name:"invoice_id", referencedColumnName: "invoice_id", nullable: true)]private ?Invoice $invoice = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $created = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $updated = null;#[ORM\Column]private ?int $updatedBy = null;public function getId(): ?int{return $this->id;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): static{$this->user = $user;return $this;}public function getInvoice(): ?Invoice{return $this->invoice;}public function setInvoice(?Invoice $invoice): self{$this->invoice = $invoice;return $this;}public function getCreated(): ?\DateTimeInterface{return $this->created;}public function getUpdated(): ?\DateTimeInterface{return $this->updated;}public function getUpdatedBy(): ?int{return $this->updatedBy;}public function setUpdatedBy(int $updatedBy): static{$this->updatedBy = $updatedBy;return $this;}public function setCreated(?\DateTimeInterface $created): self{$this->created = $created;return $this;}public function setUpdated(?\DateTimeInterface $updated): void{$this->updated = $updated;}}