mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-10 15:29:41 +00:00
Apply rector rules: add annotation for doctrine mapping
This commit is contained in:
@@ -16,7 +16,6 @@ use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Serializer\Annotation as Serializer;
|
||||
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Table(name: 'centers')]
|
||||
class Center implements HasCenterInterface, \Stringable
|
||||
@@ -24,10 +23,9 @@ class Center implements HasCenterInterface, \Stringable
|
||||
/**
|
||||
* @var Collection<GroupCenter>
|
||||
*/
|
||||
#[ORM\OneToMany(targetEntity: \Chill\MainBundle\Entity\GroupCenter::class, mappedBy: 'center')]
|
||||
#[ORM\OneToMany(targetEntity: GroupCenter::class, mappedBy: 'center')]
|
||||
private Collection $groupCenters;
|
||||
|
||||
|
||||
#[Serializer\Groups(['docgen:read'])]
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
|
||||
|
Reference in New Issue
Block a user