Releases: sokil/php-mongo
Releases · sokil/php-mongo
1.21.1
1.21
Document::beforeConstruct
moved toStructure::beforeConstruct
so embedded documents may configure some logic there #142Collection::batchDelete()
now has required argument- Now may be configured batch limit in
Cursor::copyToCollection
andCursor::moveToCollection
- Methods of
\Iterator
interface currently not recommended to use directly inCursor
andPaginator
. But if used, nowrewind
MUST 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
CursorException
exception instead of related to mongo extension. Exception from extension may be obtained from internal exception; - Document::save() throws internal
WriteException
exception 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::_mongoCollection
is 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, useFieldType
enumCollection::_database
removed, use Collection::getDatabase() instead;