24
24
* The main entity that represents all Assos.
25
25
*
26
26
* @ORM\Entity(repositoryClass=AssoRepository::class)
27
+ *
27
28
* @ORM\Table(name="assos")
28
29
*/
29
30
#[
@@ -58,9 +59,13 @@ class Asso
58
59
{
59
60
/**
60
61
* @ORM\Id
62
+ *
61
63
* @ORM\Column(type="uuid", unique=true)
64
+ *
62
65
* @ORM\GeneratedValue(strategy="CUSTOM")
66
+ *
63
67
* @ORM\CustomIdGenerator(class=UuidGenerator::class)
68
+ *
64
69
* @Assert\Uuid
65
70
*/
66
71
#[Groups([
@@ -73,15 +78,20 @@ class Asso
73
78
* The login used for the CAS.
74
79
*
75
80
* @ORM\Column(type="string", length=50, unique=true)
81
+ *
76
82
* @Assert\Type("string")
83
+ *
77
84
* @Assert\Length(min=1, max=50)
85
+ *
78
86
* @Assert\Regex("/^[a-z_0-9]{1,50}$/")
79
87
*/
80
88
private $ login ;
81
89
82
90
/**
83
91
* @ORM\Column(type="string", length=100, unique=true)
92
+ *
84
93
* @Assert\Type("string")
94
+ *
85
95
* @Assert\Length(min=1, max=100)
86
96
*/
87
97
#[Groups([
@@ -116,8 +126,11 @@ class Asso
116
126
* The email address of the association.
117
127
*
118
128
* @ORM\Column(type="string", length=100)
129
+ *
119
130
* @Assert\Type("string")
131
+ *
120
132
* @Assert\Length(min=1, max=100)
133
+ *
121
134
* @Assert\Email
122
135
*/
123
136
#[Groups([
@@ -129,8 +142,11 @@ class Asso
129
142
* The phone number of the association.
130
143
*
131
144
* @ORM\Column(type="string", length=30, nullable=true)
145
+ *
132
146
* @Assert\Type("string")
147
+ *
133
148
* @Assert\Length(min=0, max=30)
149
+ *
134
150
* @Assert\Regex("/^0[0-9]{9}$/")
135
151
*/
136
152
#[Groups([
@@ -142,8 +158,11 @@ class Asso
142
158
* The website of the association. It is optional.
143
159
*
144
160
* @ORM\Column(type="string", length=100, nullable=true)
161
+ *
145
162
* @Assert\Type("string")
163
+ *
146
164
* @Assert\Length(min=0, max=100)
165
+ *
147
166
* @Assert\Url
148
167
*/
149
168
#[Groups([
@@ -155,7 +174,9 @@ class Asso
155
174
* Link to the logo of the association. It is optional.
156
175
*
157
176
* @ORM\Column(type="string", length=100, nullable=true)
177
+ *
158
178
* @Assert\Type("string")
179
+ *
159
180
* @Assert\Length(min=0, max=100)
160
181
*/
161
182
#[Groups([
@@ -166,6 +187,7 @@ class Asso
166
187
167
188
/**
168
189
* @ORM\Column(type="datetime")
190
+ *
169
191
* @Assert\Type("\DateTimeInterface")
170
192
*/
171
193
#[Groups([
@@ -175,12 +197,14 @@ class Asso
175
197
176
198
/**
177
199
* @ORM\Column(type="datetime")
200
+ *
178
201
* @Assert\Type("\DateTimeInterface")
179
202
*/
180
203
private $ updatedAt ;
181
204
182
205
/**
183
206
* @ORM\Column(type="datetime", nullable=true)
207
+ *
184
208
* @Assert\Type("\DateTimeInterface")
185
209
*/
186
210
private $ deletedAt ;
@@ -189,6 +213,7 @@ class Asso
189
213
* The relation to all Keywords of this Asso.
190
214
*
191
215
* @ORM\ManyToMany(targetEntity=AssoKeyword::class, inversedBy="assos")
216
+ *
192
217
* @ORM\JoinTable(
193
218
* name="assos_keywords",
194
219
* joinColumns={@ORM\JoinColumn(name="asso_id", referencedColumnName="id")},
0 commit comments