Skip to content

Releases: sokil/php-mongo

1.21.1

24 Mar 08:00
Compare
Choose a tag to compare
  • Removed deprecated method with mispell in name BatchInsert::isValidationEbabled
  • Fixed usage of validation flag in BatchInsert

1.21

09 Feb 07:38
Compare
Choose a tag to compare
  • Document::beforeConstruct moved to Structure::beforeConstruct so embedded documents may configure some logic there #142
  • Collection::batchDelete() now has required argument
  • Now may be configured batch limit in Cursor::copyToCollection and Cursor::moveToCollection
  • Methods of \Iterator interface currently not recommended to use directly in Cursor and Paginator. But if used, now rewind MUST be calls before current.
  • Remove debug logger calls

1.20

16 Jan 23:52
Compare
Choose a tag to compare
  • 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

18 Dec 09:31
Compare
Choose a tag to compare
  • Fix bug in Document::addToSet
  • Docker config improvements

1.19.1

07 Oct 21:31
Compare
Choose a tag to compare

Fixed bug #132

1.19

14 Sep 18:17
Compare
Choose a tag to compare
  • Configure document pool status in collection's mapping;
  • Collection::_mongoCollection is deprecated. Use Collection::getMongoCollection() instead;
  • Collection::ensureIndex() is deprecated, use Collection::createIndex();
  • Cursor::toArray() removed, use Cursor::getMongoQuery();
  • Document::belongsToCollection() removed, use Collection::hasDocument();
  • Document::FIELD_TYPE_* constants removed, use FieldType enum
  • Collection::_database removed, use Collection::getDatabase() instead;

1.18.2

13 Sep 08:38
Compare
Choose a tag to compare

Docker test environment

1.18.1

18 Aug 20:36
Compare
Choose a tag to compare

Working with DBRefs

1.17

16 Aug 21:59
Compare
Choose a tag to compare
  • Client::$_mapping set private. Use Client::map()
  • Configure document class if collection class also configured by class prefix #128

1.16.1

27 Jun 20:13
Compare
Choose a tag to compare
  • Fixed aggregation pipeline setter