Skip to content

Commit 24cd861

Browse files
s.kaznakhovskiyl3pp4rd
authored andcommitted
change odm string annotation to field with type string
1 parent a5a5ee1 commit 24cd861

File tree

54 files changed

+99
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+99
-99
lines changed

doc/blameable.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,22 +280,22 @@ class Article
280280
private $id;
281281

282282
/**
283-
* @ODM\String
283+
* @ODM\Field(type="string")
284284
*/
285285
private $title;
286286

287287
/**
288288
* @var string $createdBy
289289
*
290-
* @ODM\String
290+
* @ODM\Field(type="string")
291291
* @Gedmo\Blameable(on="create")
292292
*/
293293
private $createdBy;
294294

295295
/**
296296
* @var string $updatedBy
297297
*
298-
* @ODM\String
298+
* @ODM\Field(type="string")
299299
* @Gedmo\Blameable
300300
*/
301301
private $updatedBy;

doc/ip_traceable.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,22 +179,22 @@ class Article
179179
private $id;
180180

181181
/**
182-
* @ODM\String
182+
* @ODM\Field(type="string")
183183
*/
184184
private $title;
185185

186186
/**
187187
* @var string $createdFromIp
188188
*
189-
* @ODM\String
189+
* @ODM\Field(type="string")
190190
* @Gedmo\IpTraceable(on="create")
191191
*/
192192
private $createdFromIp;
193193

194194
/**
195195
* @var string $updatedFromIp
196196
*
197-
* @ODM\String
197+
* @ODM\Field(type="string")
198198
* @Gedmo\IpTraceable
199199
*/
200200
private $updatedFromIp;

doc/loggable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Article
129129
private $id;
130130

131131
/**
132-
* @ODM\String
132+
* @ODM\Field(type="string")
133133
* @Gedmo\Versioned
134134
*/
135135
private $title;

doc/reference_integrity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Type
6262
private $id;
6363

6464
/**
65-
* @ODM\String
65+
* @ODM\Field(type="string")
6666
*/
6767
private $title;
6868

doc/references.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Product
6767
private $id;
6868

6969
/**
70-
* @ODM\String
70+
* @ODM\Field(type="string")
7171
*/
7272
private $name;
7373

doc/sluggable.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,18 @@ class Article
198198
private $id;
199199

200200
/**
201-
* @ODM\String
201+
* @ODM\Field(type="string")
202202
*/
203203
private $title;
204204

205205
/**
206-
* @ODM\String
206+
* @ODM\Field(type="string")
207207
*/
208208
private $code;
209209

210210
/**
211211
* @Gedmo\Slug(fields={"title", "code"})
212-
* @ODM\String
212+
* @ODM\Field(type="string")
213213
*/
214214
private $slug;
215215

doc/timestampable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ class Article
185185
private $id;
186186

187187
/**
188-
* @ODM\String
188+
* @ODM\Field(type="string")
189189
*/
190190
private $title;
191191

192192
/**
193-
* @ODM\String
193+
* @ODM\Field(type="string")
194194
*/
195195
private $body;
196196

doc/translatable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ class Article implements Translatable
191191

192192
/**
193193
* @Gedmo\Translatable
194-
* @ODM\String
194+
* @ODM\Field(type="string")
195195
*/
196196
private $title;
197197

198198
/**
199199
* @Gedmo\Translatable
200-
* @ODM\String
200+
* @ODM\Field(type="string")
201201
*/
202202
private $content;
203203

lib/Gedmo/Blameable/Traits/BlameableDocument.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ trait BlameableDocument
1616
/**
1717
* @var string
1818
* @Gedmo\Blameable(on="create")
19-
* @ODM\String
19+
* @ODM\Field(type="string")
2020
*/
2121
protected $createdBy;
2222

2323
/**
2424
* @var string
2525
* @Gedmo\Blameable(on="update")
26-
* @ODM\String
26+
* @ODM\Field(type="string")
2727
*/
2828
protected $updatedBy;
2929

lib/Gedmo/IpTraceable/Traits/IpTraceableDocument.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ trait IpTraceableDocument
1616
/**
1717
* @var string
1818
* @Gedmo\IpTraceable(on="create")
19-
* @ODM\String
19+
* @ODM\Field(type="string")
2020
*/
2121
protected $createdFromIp;
2222

2323
/**
2424
* @var string
2525
* @Gedmo\IpTraceable(on="update")
26-
* @ODM\String
26+
* @ODM\Field(type="string")
2727
*/
2828
protected $updatedFromIp;
2929

0 commit comments

Comments
 (0)