質問編集履歴
1
エンティティ・クラス情報について追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,6 +24,100 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
+
# データベースに関するエンティティの状況
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
### Conferenceクラス
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
- city, string, 255, no;
|
36
|
+
|
37
|
+
- year, string, 4, no;
|
38
|
+
|
39
|
+
- isInternational, boolean, no.
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
### Commentクラス
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
- author, string, 255, no;
|
48
|
+
|
49
|
+
- text, text, no;
|
50
|
+
|
51
|
+
- email, string, 255, no;
|
52
|
+
|
53
|
+
- createdAt, datetime, no.
|
54
|
+
|
55
|
+
- photoFilename, string, yes
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
### エンティティの関連づけ
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
```terminal
|
64
|
+
|
65
|
+
New property name (press <return> to stop adding fields):
|
66
|
+
|
67
|
+
> comments
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
Field type (enter ? to see all types) [string]:
|
72
|
+
|
73
|
+
> OneToMany
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
What class should this entity be related to?:
|
78
|
+
|
79
|
+
> Comment
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
A new property will also be added to the Comment class...
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
New field name inside Comment [conference]:
|
88
|
+
|
89
|
+
>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
Is the Comment.conference property allowed to be null (nullable)? (yes/no) [yes]:
|
94
|
+
|
95
|
+
> no
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
Do you want to activate orphanRemoval on your relationship?
|
100
|
+
|
101
|
+
A Comment is "orphaned" when it is removed from its related Conference.
|
102
|
+
|
103
|
+
e.g. $conference->removeComment($comment)
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
NOTE: If a Comment may *change* from one Conference to another, answer "no".
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
Do you want to automatically delete orphaned App\Entity\Comment objects (orphanRemoval)? (yes/no) [no]:
|
112
|
+
|
113
|
+
> yes
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
```
|
118
|
+
|
119
|
+
|
120
|
+
|
27
121
|
# 教えて欲しいこと
|
28
122
|
|
29
123
|
|