<?php
namespace App\Entity;
use App\Repository\StaffServiceOrderRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: StaffServiceOrderRepository::class), ORM\Table(name: 'staff_service_orders')]
class StaffServiceOrder
{
#[ORM\Id, ORM\GeneratedValue, ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 100)]
private $fileName;
#[ORM\ManyToOne(targetEntity: StaffProfile::class, inversedBy: 'serviceOrders'), ORM\JoinColumn(nullable: false)]
private $profile;
public function getId(): ?int
{
return $this->id;
}
public function getFileName(): ?string
{
return $this->fileName;
}
public function setFileName(string $fileName): self
{
$this->fileName = $fileName;
return $this;
}
public function getProfile(): ?StaffProfile
{
return $this->profile;
}
public function setProfile(?StaffProfile $profile): self
{
$this->profile = $profile;
return $this;
}
}