Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit d3d245f

Browse files
Fixes #735: Replace deprecated annotations:
@phpcr\String() → @phpcr\Field(type="string") @phpcr\Boolean() → @phpcr\Field(type="boolean")
1 parent b24a4d1 commit d3d245f

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

book/database_layer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ class via annotations:
114114
protected $id;
115115
116116
/**
117-
* @PHPCR\String()
117+
* @PHPCR\Field(type="string")
118118
*/
119119
protected $description;
120120
121121
/**
122-
* @PHPCR\Boolean()
122+
* @PHPCR\Field(type="boolean")
123123
*/
124124
protected $done = false;
125125

book/handling_multilang.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ always happens on a document level, not on the individual translatable fields.
107107
{
108108
/**
109109
* Translated property
110-
* @PHPCR\String(translated=true)
110+
* @PHPCR\Field(type="string", translated=true)
111111
*/
112112
private $topic;
113113

bundles/block/create_your_own_blocks.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ for instance ``acme_main.block.rss``::
4545
class RssBlock extends AbstractBlock
4646
{
4747
/**
48-
* @PHPCR\String(nullable=true)
48+
* @PHPCR\Field(type="string", nullable=true)
4949
*/
5050
private $feedUrl;
5151

5252
/**
53-
* @PHPCR\String()
53+
* @PHPCR\Field(type="string")
5454
*/
5555
private $title;
5656

bundles/phpcr_odm/multilang.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ depending on the locale.
139139
140140
/**
141141
* Translated property
142-
* @PHPCR\String(translated=true)
142+
* @PHPCR\Field(type="string", translated=true)
143143
*/
144144
private $topic;
145145

tutorial/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ to reduce code duplication::
112112
protected $title;
113113

114114
/**
115-
* @PHPCR\String(nullable=true)
115+
* @PHPCR\Field(type='string', nullable=true)
116116
*/
117117
protected $content;
118118

0 commit comments

Comments
 (0)