diff --git a/.travis.yml b/.travis.yml index ad5bc89..552d750 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: php php: - - 7.0 - 7.1 services: diff --git a/src/PhalconRepositories/MongoFix.php b/src/PhalconRepositories/MongoFix.php deleted file mode 100644 index ff3cc7b..0000000 --- a/src/PhalconRepositories/MongoFix.php +++ /dev/null @@ -1,36 +0,0 @@ -= 0) { - $this->_dependencyInjector = \Phalcon\Di::getDefault(); - $this->_modelsManager = $this->_dependencyInjector->getShared("collectionManager"); - $this->_modelsManager->initialize($this); - } - - return parent::save(); - } - - public function delete() - { - if (version_compare(PHP_VERSION, '7.1.0') >= 0) { - $this->_dependencyInjector = \Phalcon\Di::getDefault(); - $this->_modelsManager = $this->_dependencyInjector->getShared("collectionManager"); - $this->_modelsManager->initialize($this); - } - - return parent::delete(); - } - - /** - * WORKAROUND TO FIX PHALCON INCUBATOR MONGO BUG ------> - */ -} \ No newline at end of file diff --git a/tests/CollectionRepositoryTest.php b/tests/CollectionRepositoryTest.php index 1b71c3c..908514b 100644 --- a/tests/CollectionRepositoryTest.php +++ b/tests/CollectionRepositoryTest.php @@ -314,8 +314,6 @@ function __construct() class UsersMongo extends \Phalcon\Mvc\MongoCollection { - use \MicheleAngioni\PhalconRepositories\MongoFix; - public $id; public $username;