mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 01:53:49 +00:00
Apply rector changes to Collection typing
This commit is contained in:
@@ -110,7 +110,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
|
||||
private ?string $canonicalized = '';
|
||||
|
||||
/**
|
||||
* @var Collection<ThirdPartyCategory>
|
||||
* @var Collection<int, ThirdPartyCategory>
|
||||
*/
|
||||
#[Groups(['docgen:read', 'docgen:read:3party:parent'])]
|
||||
#[ORM\ManyToMany(targetEntity: ThirdPartyCategory::class)]
|
||||
@@ -119,7 +119,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
|
||||
private Collection $categories;
|
||||
|
||||
/**
|
||||
* @var Collection<Center>
|
||||
* @var Collection<int, Center>
|
||||
*/
|
||||
#[ORM\ManyToMany(targetEntity: Center::class)]
|
||||
#[ORM\JoinTable(name: 'chill_3party.party_center')]
|
||||
@@ -128,10 +128,10 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
|
||||
/**
|
||||
* Contact Persons: One Institutional ThirdParty has Many Contact Persons.
|
||||
*
|
||||
* @var Collection<ThirdParty>
|
||||
* @var Collection<int, ThirdParty>
|
||||
*/
|
||||
#[Assert\Valid(traverse: true)]
|
||||
#[ORM\OneToMany(targetEntity: ThirdParty::class, mappedBy: 'parent', cascade: ['persist'], orphanRemoval: true)]
|
||||
#[ORM\OneToMany(mappedBy: 'parent', targetEntity: ThirdParty::class, cascade: ['persist'], orphanRemoval: true)]
|
||||
private Collection $children;
|
||||
|
||||
#[Context(normalizationContext: ['groups' => 'docgen:read'], groups: ['docgen:read:3party:parent'])]
|
||||
|
Reference in New Issue
Block a user