File tree 6 files changed +10
-12
lines changed
JMS/Serializer/Tests/Fixtures/DoctrinePHPCR
6 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 15
15
16
16
matrix :
17
17
allow_failures :
18
- - php : 7.0
19
18
- php : hhvm
20
19
21
20
before_script :
Original file line number Diff line number Diff line change 16
16
"jms/metadata" : " ~1.1" ,
17
17
"jms/parser-lib" : " 1.*" ,
18
18
"phpcollection/phpcollection" : " ~0.1" ,
19
- "doctrine/annotations" : " 1.* " ,
20
- "doctrine/instantiator" : " ~ 1.0.3"
19
+ "doctrine/annotations" : " ^1.0 " ,
20
+ "doctrine/instantiator" : " ^ 1.0.3"
21
21
},
22
22
"conflict" : {
23
23
"twig/twig" : " <1.12"
28
28
"require-dev" : {
29
29
"twig/twig" : " ~1.12|~2.0" ,
30
30
"doctrine/orm" : " ~2.1" ,
31
- "doctrine/phpcr-odm" : " ^1.0.1 " ,
32
- "jackalope/jackalope-doctrine-dbal" : " 1.0.* " ,
31
+ "doctrine/phpcr-odm" : " ^1.3 " ,
32
+ "jackalope/jackalope-doctrine-dbal" : " ^ 1.0" ,
33
33
"propel/propel1" : " ~1.7" ,
34
34
"symfony/yaml" : " 2.*" ,
35
35
"symfony/translation" : " ~2.0" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class Author
32
32
protected $ id ;
33
33
34
34
/**
35
- * @PHPCRODM\String( )
35
+ * @PHPCRODM\Field(type="string" )
36
36
* @SerializedName("full_name")
37
37
*/
38
38
private $ name ;
Original file line number Diff line number Diff line change @@ -39,24 +39,24 @@ class BlogPost
39
39
protected $ id ;
40
40
41
41
/**
42
- * @PHPCRODM\String( )
42
+ * @PHPCRODM\Field(type="string" )
43
43
* @Groups({"comments","post"})
44
44
*/
45
45
private $ title ;
46
46
47
47
/**
48
- * @PHPCRODM\String( )
48
+ * @PHPCRODM\Field(type="string" )
49
49
*/
50
50
protected $ slug ;
51
51
52
52
/**
53
- * @PHPCRODM\Date( )
53
+ * @PHPCRODM\Field(type="date" )
54
54
* @XmlAttribute
55
55
*/
56
56
private $ createdAt ;
57
57
58
58
/**
59
- * @PHPCRODM\Boolean( )
59
+ * @PHPCRODM\Field(type="boolean" )
60
60
* @Type("integer")
61
61
* This boolean to integer conversion is one of the few changes between this
62
62
* and the standard BlogPost class. It's used to test the override behavior
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class Comment
39
39
private $ blogPost ;
40
40
41
41
/**
42
- * @PHPCRODM\String( )
42
+ * @PHPCRODM\Field(type="string" )
43
43
*/
44
44
private $ text ;
45
45
Original file line number Diff line number Diff line change 27
27
$ loader ->add ('JMS\Serializer\Tests ' , __DIR__ );
28
28
29
29
AnnotationRegistry::registerLoader ('class_exists ' );
30
- AnnotationRegistry::registerFile (__DIR__ .'/../vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/Annotations/DoctrineAnnotations.php ' );
31
30
});
You can’t perform that action at this time.
0 commit comments