src/Entity/Communaute.php line 11
<?phpnamespace App\Entity;use App\Entity\Traits\Timestamp;use App\Repository\CommunauteRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: CommunauteRepository::class)]#[ORM\HasLifecycleCallbacks]class Communaute{use Timestamp;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column(length: 255, nullable: true)]private ?string $icon = null;#[ORM\Column(length: 255, nullable: true)]private ?string $lien = null;#[ORM\ManyToOne(inversedBy: 'communautes')]private ?Apropos $apropos = null;public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getIcon(): ?string{return $this->icon;}public function setIcon(?string $icon): self{$this->icon = $icon;return $this;}public function getLien(): ?string{return $this->lien;}public function setLien(?string $lien): self{$this->lien = $lien;return $this;}public function getApropos(): ?Apropos{return $this->apropos;}public function setApropos(?Apropos $apropos): self{$this->apropos = $apropos;return $this;}}