Mise à jour de symfony

Mise à jour de PHP
Correction des entitées from attributes to annotations
Ajout des entitées des objets 3D
This commit is contained in:
2023-01-17 17:27:49 +01:00
parent 54fa272910
commit 145f4aa7fd
35 changed files with 1770 additions and 1307 deletions
+7 -15
View File
@@ -7,27 +7,19 @@ use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=BuildingRepository::class)
*/
#[ORM\Entity(repositoryClass: BuildingRepository::class)]
class Building
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: "integer")]
private $id;
/**
* @ORM\ManyToOne(targetEntity=Site::class, inversedBy="buildings")
* @ORM\JoinColumn(nullable=false)
*/
#[ORM\ManyToOne(targetEntity: Site::class, inversedBy: "buildings")]
#[ORM\JoinColumn(nullable: false)]
private $site;
/**
* @ORM\OneToMany(targetEntity=Floor::class, mappedBy="building")
*/
#[ORM\OneToMany(targetEntity: Floor::class, mappedBy: "building")]
private $floors;
public function __construct()