<?php
namespace App\Entity;
use App\Repository\StructureAssocieRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: StructureAssocieRepository::class)]
class StructureAssocie
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: Structure::class)]
private $structure;
#[ORM\ManyToOne(targetEntity: Direction::class)]
private $direction;
#[ORM\ManyToOne(targetEntity: Groupe::class, inversedBy: 'structureAssocies')]
private $groupe;
public function getId(): ?int
{
return $this->id;
}
public function getStructure(): ?Structure
{
return $this->structure;
}
public function setStructure(?Structure $structure): self
{
$this->structure = $structure;
return $this;
}
public function getDirection(): ?Direction
{
return $this->direction;
}
public function setDirection(?Direction $direction): self
{
$this->direction = $direction;
return $this;
}
public function getGroupe(): ?Groupe
{
return $this->groupe;
}
public function setGroupe(?Groupe $groupe): self
{
$this->groupe = $groupe;
return $this;
}
}