@@ -5,6 +5,94 @@ namespace Doctrine\ORM\Mapping;
5
5
/**
6
6
* @template-covariant T of object
7
7
* @extends ClassMetadataInfo<T>
8
+ * @phpstan-type FieldMapping = array{
9
+ * type: string,
10
+ * fieldName: string,
11
+ * columnName: string,
12
+ * length?: int,
13
+ * id?: bool,
14
+ * nullable?: bool,
15
+ * notInsertable?: bool,
16
+ * notUpdatable?: bool,
17
+ * generated?: int,
18
+ * enumType?: class-string<\BackedEnum>,
19
+ * columnDefinition?: string,
20
+ * precision?: int,
21
+ * scale?: int,
22
+ * unique?: bool,
23
+ * inherited?: class-string,
24
+ * originalClass?: class-string,
25
+ * originalField?: string,
26
+ * quoted?: bool,
27
+ * requireSQLConversion?: bool,
28
+ * declared?: class-string,
29
+ * declaredField?: string,
30
+ * options?: array<string, mixed>,
31
+ * version?: string,
32
+ * default?: string|int,
33
+ * }
34
+ * @phpstan-type JoinColumnData = array{
35
+ * name: string,
36
+ * referencedColumnName: string,
37
+ * unique?: bool,
38
+ * quoted?: bool,
39
+ * fieldName?: string,
40
+ * onDelete?: string,
41
+ * columnDefinition?: string,
42
+ * nullable?: bool,
43
+ * }
44
+ * @phpstan-type AssociationMapping = array{
45
+ * cache?: array,
46
+ * cascade: array<string>,
47
+ * declared?: class-string,
48
+ * fetch: mixed,
49
+ * fieldName: string,
50
+ * id?: bool,
51
+ * inherited?: class-string,
52
+ * indexBy?: string,
53
+ * inversedBy: string|null,
54
+ * isCascadeRemove: bool,
55
+ * isCascadePersist: bool,
56
+ * isCascadeRefresh: bool,
57
+ * isCascadeMerge: bool,
58
+ * isCascadeDetach: bool,
59
+ * isOnDeleteCascade?: bool,
60
+ * isOwningSide: bool,
61
+ * joinColumns?: array<JoinColumnData>,
62
+ * joinColumnFieldNames?: array<string, string>,
63
+ * joinTable?: array,
64
+ * joinTableColumns?: list<mixed>,
65
+ * mappedBy: string|null,
66
+ * orderBy?: array,
67
+ * originalClass?: class-string,
68
+ * originalField?: string,
69
+ * orphanRemoval?: bool,
70
+ * relationToSourceKeyColumns?: array,
71
+ * relationToTargetKeyColumns?: array,
72
+ * sourceEntity: class-string,
73
+ * sourceToTargetKeyColumns?: array<string, string>,
74
+ * targetEntity: class-string,
75
+ * targetToSourceKeyColumns?: array<string, string>,
76
+ * type: int,
77
+ * unique?: bool,
78
+ * }
79
+ * @phpstan-type DiscriminatorColumnMapping = array{
80
+ * name: string,
81
+ * fieldName: string,
82
+ * type: string,
83
+ * length?: int,
84
+ * columnDefinition?: string|null,
85
+ * enumType?: class-string<\BackedEnum>|null,
86
+ * options?: array<string, mixed>,
87
+ * }
88
+ * @phpstan-type EmbeddedClassMapping = array{
89
+ * class: class-string,
90
+ * columnPrefix: string|null,
91
+ * declaredField: string|null,
92
+ * originalField: string|null,
93
+ * inherited?: class-string,
94
+ * declared?: class-string,
95
+ * }
8
96
*/
9
97
class ClassMetadata extends ClassMetadataInfo
10
98
{
0 commit comments