File tree Expand file tree Collapse file tree 5 files changed +14
-9
lines changed Expand file tree Collapse file tree 5 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 44 - 5.5
55 - 5.6
66
7+ env :
8+ - MONGO_DRIVER=mongo
9+
710matrix :
811 include :
912 - php : 5.5
10- env : COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
13+ env : MONGO_DRIVER=mongo COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
14+ - php : 7.0
15+ env : ADAPTER_VERSION="^1.0.0" MONGO_DRIVER=mongodb
1116
1217sudo : false
1318
1823services : mongodb
1924
2025before_install :
21- - yes '' | pecl -q install -f mongo
22- - php --ri mongo
26+ - yes '' | pecl -q install -f $MONGO_DRIVER
27+ - if [ "x${ADAPTER_VERSION}" != "x" ]; then composer require "alcaeus/mongo- php-adapter=${ADAPTER_VERSION}" --ignore-platform-reqs; fi
2328
2429install :
2530 - composer update $COMPOSER_FLAGS
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class Category
1111 /** @ODM\Id */
1212 protected $ id ;
1313
14- /** @ODM\String */
14+ /** @ODM\Field(type="string") */
1515 public $ name ;
1616
1717 /**
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class Document
1111 /** @ODM\Id(strategy="none") */
1212 protected $ id ;
1313
14- /** @ODM\String */
14+ /** @ODM\Field(type="string") */
1515 public $ name ;
1616
1717 /**
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class User implements UserInterface
1111 /** @ODM\Id(strategy="none") */
1212 protected $ id ;
1313
14- /** @ODM\String */
14+ /** @ODM\Field(type="string") */
1515 public $ name ;
1616
1717 public function __construct ($ id , $ name ) {
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ class Document
1010 /** @ODM\Id(strategy="none") */
1111 protected $ id ;
1212
13- /** @ODM\String */
13+ /** @ODM\Field(type="string") */
1414 public $ name ;
1515
16- /** @ODM\Hash */
16+ /** @ODM\Field(type="hash") */
1717 public $ hash ;
1818
1919 /** @ODM\Collection */
@@ -36,6 +36,6 @@ public function __construct($id) {
3636/** @ODM\EmbeddedDocument */
3737class EmbeddedDocument
3838{
39- /** @ODM\String */
39+ /** @ODM\Field(type="string") */
4040 public $ name ;
4141}
You can’t perform that action at this time.
0 commit comments