X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FEntity%2FLocalisation.php;h=6e86eba4caddb67373b45083e4ab3a5408240e62;hb=c4fba949ce8e98cadb9222a202b9e24b52dcb7f8;hp=b85a705bca5acfb4d1a2a3c202df708ec2feca62;hpb=84fd6c7fa765874e478ad7f92e356e88b3ff962c;p=Project_proches_de_moi-server.git diff --git a/src/Entity/Localisation.php b/src/Entity/Localisation.php index b85a705..6e86eba 100644 --- a/src/Entity/Localisation.php +++ b/src/Entity/Localisation.php @@ -14,12 +14,12 @@ class Localisation /** * @ORM\Id * @ORM\Column(type="bigint") - * @ORM\GeneratedValue + * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** - * @ORM\ManyToOne(targetEntity="App\Entity\Person", cascade={"all"}) + * @ORM\ManyToOne(targetEntity="App\Entity\Person") */ protected $person; @@ -72,6 +72,12 @@ class Localisation return $this; } + public function setPerson($person) + { + $this->person = $person; + return $this; + } + public function setTimestamp($timestamp) { $this->timestamp = $timestamp;