Création de la base de donnée (du moins, des scripts pour la base de donnée)

This commit is contained in:
2022-11-16 14:49:55 +01:00
parent 1aa054ab4c
commit 87c1d313fb
25 changed files with 2750 additions and 4 deletions
+42
View File
@@ -0,0 +1,42 @@
<?php
namespace App\Entity;
use App\Repository\BuildingRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=BuildingRepository::class)
*/
class Building
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Site::class, inversedBy="buildings")
* @ORM\JoinColumn(nullable=false)
*/
private $site;
public function getId(): ?int
{
return $this->id;
}
public function getSite(): ?Site
{
return $this->site;
}
public function setSite(?Site $site): self
{
$this->site = $site;
return $this;
}
}