Releases: sokil/php-mongo
Releases · sokil/php-mongo
1.21.1
1.21
Document::beforeConstructmoved toStructure::beforeConstructso embedded documents may configure some logic there #142Collection::batchDelete()now has required argument- Now may be configured batch limit in
Cursor::copyToCollectionandCursor::moveToCollection - Methods of
\Iteratorinterface currently not recommended to use directly inCursorandPaginator. But if used, nowrewindMUST be calls beforecurrent. - Remove debug logger calls
1.20
- Implemented support of new ext-mongodb and, as a result, PHP7 and HHVM through compatibility layer "alcaeus/mongo-php-adapter", which implement API from old ext-mongo extension;
- Cursor::findOne() throws internal
CursorExceptionexception instead of related to mongo extension. Exception from extension may be obtained from internal exception; - Document::save() throws internal
WriteExceptionexception instead of related to mongo extension. Exception from extension may be obtained from internal exception; - Docker tests now check PHP 7 code
- Structure::apply() now protected
1.19.2
1.19.1
1.19
- Configure document pool status in collection's mapping;
Collection::_mongoCollectionis deprecated. UseCollection::getMongoCollection()instead;Collection::ensureIndex()is deprecated, useCollection::createIndex();Cursor::toArray()removed, useCursor::getMongoQuery();Document::belongsToCollection()removed, useCollection::hasDocument();Document::FIELD_TYPE_*constants removed, useFieldTypeenumCollection::_databaseremoved, use Collection::getDatabase() instead;