mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-12-08 11:23:55 +00:00
Apply rector rules: add annotation for doctrine mapping
This commit is contained in:
@@ -15,9 +15,6 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Class Role.
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
#[ORM\Entity]
|
||||
#[ORM\HasLifecycleCallbacks]
|
||||
@@ -27,7 +24,6 @@ class Role
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::BOOLEAN, nullable: false)]
|
||||
private bool $active = true;
|
||||
|
||||
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
|
||||
#[ORM\GeneratedValue(strategy: 'AUTO')]
|
||||
@@ -39,7 +35,7 @@ class Role
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::JSON)]
|
||||
private $name;
|
||||
|
||||
#[ORM\ManyToOne(targetEntity: \Chill\EventBundle\Entity\EventType::class, inversedBy: 'roles')]
|
||||
#[ORM\ManyToOne(targetEntity: EventType::class, inversedBy: 'roles')]
|
||||
private ?EventType $type = null;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user