feat : mise à jour du bon de réception WIP

This commit is contained in:
2026-02-03 17:16:47 +01:00
parent 5fd2ab8470
commit 081c2ef403
5 changed files with 642 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
<?php
declare(strict_types=1);
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'bovin_shipment')]
class BovinShipment
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
#[Groups(['shipment:read', 'bovine-shipment:read'])]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'shipment')]
#[Groups(['shipment:read', 'shipment:write', 'bovine-shipment:read', 'bovine-shipment:write'])]
private ?Shipment $Shipment = null;
#[ORM\ManyToOne(inversedBy: 'bovinShipments')]
#[Groups(['shipment:read', 'shipment:write', 'bovine-shipment:read', 'bovine-shipment:write'])]
private ?BovineTypeShipment $BovineType = null;
#[ORM\Column]
#[Groups(['shipment:read', 'shipment:write', 'bovine-shipment:read', 'bovine-shipment:write'])]
private ?int $nbBovinSend = null;
public function getId(): ?int
{
return $this->id;
}
public function getIdShipment(): ?Shipment
{
return $this->Shipment;
}
public function setIdShipment(?Shipment $Shipment): static
{
$this->Shipment = $Shipment;
return $this;
}
public function getIdType(): ?BovineTypeShipment
{
return $this->BovineType;
}
public function setIdType(?BovineTypeShipment $BovineType): static
{
$this->BovineType = $BovineType;
return $this;
}
public function getNbBovinSend(): ?int
{
return $this->nbBovinSend;
}
public function setNbBovinSend(int $nbBovinSend): static
{
$this->nbBovinSend = $nbBovinSend;
return $this;
}
}