Skip to content

Commit

Permalink
change odm string annotation to field with type string
Browse files Browse the repository at this point in the history
  • Loading branch information
s.kaznakhovskiy authored and l3pp4rd committed Jul 30, 2016
1 parent a5a5ee1 commit 24cd861
Show file tree
Hide file tree
Showing 54 changed files with 99 additions and 99 deletions.
6 changes: 3 additions & 3 deletions doc/blameable.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,22 +280,22 @@ class Article
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

/**
* @var string $createdBy
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\Blameable(on="create")
*/
private $createdBy;

/**
* @var string $updatedBy
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\Blameable
*/
private $updatedBy;
Expand Down
6 changes: 3 additions & 3 deletions doc/ip_traceable.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,22 +179,22 @@ class Article
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

/**
* @var string $createdFromIp
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\IpTraceable(on="create")
*/
private $createdFromIp;

/**
* @var string $updatedFromIp
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\IpTraceable
*/
private $updatedFromIp;
Expand Down
2 changes: 1 addition & 1 deletion doc/loggable.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Article
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\Versioned
*/
private $title;
Expand Down
2 changes: 1 addition & 1 deletion doc/reference_integrity.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Type
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

Expand Down
2 changes: 1 addition & 1 deletion doc/references.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Product
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $name;

Expand Down
6 changes: 3 additions & 3 deletions doc/sluggable.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,18 +198,18 @@ class Article
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $code;

/**
* @Gedmo\Slug(fields={"title", "code"})
* @ODM\String
* @ODM\Field(type="string")
*/
private $slug;

Expand Down
4 changes: 2 additions & 2 deletions doc/timestampable.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ class Article
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $body;

Expand Down
4 changes: 2 additions & 2 deletions doc/translatable.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ class Article implements Translatable

/**
* @Gedmo\Translatable
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

/**
* @Gedmo\Translatable
* @ODM\String
* @ODM\Field(type="string")
*/
private $content;

Expand Down
4 changes: 2 additions & 2 deletions lib/Gedmo/Blameable/Traits/BlameableDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ trait BlameableDocument
/**
* @var string
* @Gedmo\Blameable(on="create")
* @ODM\String
* @ODM\Field(type="string")
*/
protected $createdBy;

/**
* @var string
* @Gedmo\Blameable(on="update")
* @ODM\String
* @ODM\Field(type="string")
*/
protected $updatedBy;

Expand Down
4 changes: 2 additions & 2 deletions lib/Gedmo/IpTraceable/Traits/IpTraceableDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ trait IpTraceableDocument
/**
* @var string
* @Gedmo\IpTraceable(on="create")
* @ODM\String
* @ODM\Field(type="string")
*/
protected $createdFromIp;

/**
* @var string
* @Gedmo\IpTraceable(on="update")
* @ODM\String
* @ODM\Field(type="string")
*/
protected $updatedFromIp;

Expand Down
8 changes: 4 additions & 4 deletions lib/Gedmo/Translator/Document/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Gedmo\Translator\Translation as BaseTranslation;
use Doctrine\ODM\MongoDB\Mapping\Annotations\MappedSuperclass;
use Doctrine\ODM\MongoDB\Mapping\Annotations\Id;
use Doctrine\ODM\MongoDB\Mapping\Annotations\String as MongoString;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;

/**
* Document translation class.
Expand All @@ -25,21 +25,21 @@ abstract class Translation extends BaseTranslation
/**
* @var string $locale
*
* @MongoString
* @ODM\Field(type="string")
*/
protected $locale;

/**
* @var string $property
*
* @MongoString
* @ODM\Field(type="string")
*/
protected $property;

/**
* @var string $value
*
* @MongoString
* @ODM\Field(type="string")
*/
protected $value;

Expand Down
8 changes: 4 additions & 4 deletions tests/Gedmo/Blameable/Fixture/Document/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Article
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

Expand All @@ -26,15 +26,15 @@ class Article
/**
* @var string $created
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\Blameable(on="create")
*/
private $created;

/**
* @var string $updated
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\Blameable
*/
private $updated;
Expand All @@ -48,7 +48,7 @@ class Article
/**
* @var string $published
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\Blameable(on="change", field="type.title", value="Published")
*/
private $published;
Expand Down
4 changes: 2 additions & 2 deletions tests/Gedmo/Blameable/Fixture/Document/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class Type
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $identifier;

Expand Down
2 changes: 1 addition & 1 deletion tests/Gedmo/Blameable/Fixture/Document/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class User
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $username;

Expand Down
10 changes: 5 additions & 5 deletions tests/Gedmo/IpTraceable/Fixture/Document/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Article
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

Expand All @@ -26,30 +26,30 @@ class Article
/**
* @var string $created
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\IpTraceable(on="create")
*/
private $created;

/**
* @var string $updated
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\IpTraceable
*/
private $updated;

/**
* @var string $published
*
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\IpTraceable(on="change", field="type.title", value="Published")
*/
private $published;

/**
* @var string
* @ODM\String
* @ODM\Field(type="string")
* @Gedmo\IpTraceable(on="change", field="isReady", value=true)
*/
private $ready;
Expand Down
4 changes: 2 additions & 2 deletions tests/Gedmo/IpTraceable/Fixture/Document/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class Type
private $id;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

/**
* @ODM\String
* @ODM\Field(type="string")
*/
private $identifier;

Expand Down
2 changes: 1 addition & 1 deletion tests/Gedmo/Loggable/Fixture/Document/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Article

/**
* @Gedmo\Versioned
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

Expand Down
4 changes: 2 additions & 2 deletions tests/Gedmo/Loggable/Fixture/Document/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class Author
{
/**
* @Gedmo\Versioned
* @ODM\String
* @ODM\Field(type="string")
*/
private $name;

/**
* @Gedmo\Versioned
* @ODM\String
* @ODM\Field(type="string")
*/
private $email;

Expand Down
4 changes: 2 additions & 2 deletions tests/Gedmo/Loggable/Fixture/Document/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class Comment

/**
* @Gedmo\Versioned
* @ODM\String
* @ODM\Field(type="string")
*/
private $subject;

/**
* @Gedmo\Versioned
* @ODM\String
* @ODM\Field(type="string")
*/
private $message;

Expand Down
4 changes: 2 additions & 2 deletions tests/Gedmo/Loggable/Fixture/Document/RelatedArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class RelatedArticle

/**
* @Gedmo\Versioned
* @ODM\String
* @ODM\Field(type="string")
*/
private $title;

/**
* @Gedmo\Versioned
* @ODM\String
* @ODM\Field(type="string")
*/
private $content;

Expand Down
4 changes: 2 additions & 2 deletions tests/Gedmo/Mapping/Fixture/Document/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class User

/**
* @Ext\Encode(type="sha1", secret="xxx")
* @ODM\String
* @ODM\Field(type="string")
*/
private $name;

/**
* @Ext\Encode(type="md5")
* @ODM\String
* @ODM\Field(type="string")
*/
private $password;

Expand Down
Loading

0 comments on commit 24cd861

Please sign in to comment.