fix(continuous-integration): correction php-cs-fixer
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good
This commit is contained in:
@ -1,20 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use App\Validator;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||
use App\Validator as Validator;
|
||||
|
||||
/**
|
||||
* @ORM\Entity
|
||||
* @ORM\Table(name="niveau01")
|
||||
* @ORM\HasLifecycleCallbacks()
|
||||
* @ORM\Entity(repositoryClass="App\Repository\Niveau01Repository")
|
||||
*
|
||||
*
|
||||
* @UniqueEntity(fields="label", message="Un Niveau de rang 01 existe déjà avec ce label")
|
||||
*/
|
||||
class Niveau01
|
||||
@ -30,9 +29,9 @@ class Niveau01
|
||||
* @ORM\Column(type="string", length=250, unique=true)
|
||||
* @Validator\Grouplabel()
|
||||
* @Validator\Niveau01unique()
|
||||
*/
|
||||
*/
|
||||
private $label;
|
||||
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string")
|
||||
*/
|
||||
@ -54,7 +53,7 @@ class Niveau01
|
||||
private $idexternal;
|
||||
|
||||
/**
|
||||
* @var ArrayCollection $niveau02s
|
||||
* @var ArrayCollection
|
||||
* @var Registration
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Niveau02", mappedBy="niveau01", cascade={"persist"}, orphanRemoval=false)
|
||||
@ -62,7 +61,7 @@ class Niveau01
|
||||
private $niveau02s;
|
||||
|
||||
/**
|
||||
* @var ArrayCollection $registrations
|
||||
* @var ArrayCollection
|
||||
* @var Registration
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Registration", mappedBy="niveau01", cascade={"persist"}, orphanRemoval=false)
|
||||
@ -70,16 +69,15 @@ class Niveau01
|
||||
private $registrations;
|
||||
|
||||
/**
|
||||
* @var ArrayCollection $users
|
||||
* @var ArrayCollection
|
||||
* @var User
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="User", mappedBy="niveau01", cascade={"persist"}, orphanRemoval=false)
|
||||
*/
|
||||
private $users;
|
||||
|
||||
|
||||
/**
|
||||
* @var ArrayCollection $modos
|
||||
* @var ArrayCollection
|
||||
* @var User
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="UserModo", mappedBy="niveau01", cascade={"persist"}, orphanRemoval=false)
|
||||
@ -94,14 +92,14 @@ class Niveau01
|
||||
$this->modos = new ArrayCollection();
|
||||
}
|
||||
|
||||
|
||||
//== CODE A NE PAS REGENERER
|
||||
// == CODE A NE PAS REGENERER
|
||||
public function setId(int $id): self
|
||||
{
|
||||
$this->id = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
//== FIN DU CODE A NE PAS REGENERER
|
||||
// == FIN DU CODE A NE PAS REGENERER
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
@ -287,6 +285,4 @@ class Niveau01
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user