← Back
Editing: Periode.php
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; #[ORM\Table(name: 'tr_periode')] #[ORM\Entity(repositoryClass: 'App\Repository\PeriodeRepository')] class Periode { #[ORM\Column(name: 'id', type: 'integer', nullable: false)] #[ORM\Id] #[ORM\GeneratedValue(strategy: 'IDENTITY')] private ?int $id = null; #[ORM\Column(name: 'nom', type: 'string', length: 16, nullable: false)] private string $nom; #[ORM\Column(name: 'active', type: 'boolean', options: ['default' => 1])] private bool $active = true; public function getId(): ?int { return $this->id; } public function getNom(): string { return $this->nom; } public function setNom(string $nom): self { $this->nom = $nom; return $this; } public function __toString() { return $this->nom; } public function getActive(): bool { return $this->active; } public function setActive(bool $active): self { $this->active = $active; return $this; } public function isActive(): ?bool { return $this->active; } }
Save File
Cancel