Olivier Massot vor 11 Monaten
Ursprung
Commit
8aee98d6b2

+ 2 - 2
src/Entity/Core/AbstractControl.php

@@ -21,8 +21,8 @@ abstract class AbstractControl
     #[ORM\JoinColumn(nullable: true)]
     protected Access $accompanist;
 
-//    #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'controls', cascade: ['persist'], orphanRemoval: false)]
-//    protected Collection $tags;
+    #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'controls', cascade: ['persist'], orphanRemoval: false)]
+    protected Collection $tags;
 
     public function __construct()
     {

+ 4 - 4
src/Service/Doctrine/SchemaValidation/SchemaSnippetsMaker.php

@@ -450,7 +450,7 @@ class SchemaSnippetsMaker
     /**
      * Make the attribute defining the relation (ex: #[ORM\ManyToMany(...)])
      *
-     * @param array $type
+     * @param array<string | array<string | array<string>>> $type
      * @return Attribute
      */
     protected function makeRelationAttribute(array $type): Attribute
@@ -491,7 +491,7 @@ class SchemaSnippetsMaker
     /**
      * Make the #[ORM\JoinTable] attribute (if a definition exists)
      *
-     * @param array $type
+     * @param array<string | array<string | array<string>>> $type
      * @return Attribute|null
      */
     protected function makeJoinTableAttributes(array $type): ?Attribute {
@@ -512,9 +512,9 @@ class SchemaSnippetsMaker
      *
      * Is `$inverse` is true, make the #[InverseJoinColumn] instead.
      *
-     * @param array $type
+     * @param array<string | array<string | array<string>>> $type
      * @param bool $inverse
-     * @return array
+     * @return array<Attribute>
      */
     protected function makeJoinColumnAttributes(array $type, bool $inverse = false): array {
         $key = $inverse ? 'inverseJoinColumns' : 'joinColumns';