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