Skip to content

Releases: sokil/php-mongo

1.13.4

27 Jul 19:02
Compare
Choose a tag to compare
  • cache detected db version
  • Cursor autocomplete improves

1.13.3

06 Jul 05:54
Compare
Choose a tag to compare
  • Use MongoWriteBatch classes when using unit of work

1.13.2

22 May 06:07
Compare
Choose a tag to compare
  • Added support of cursor timeouts

1.13.1

14 May 05:54
Compare
Choose a tag to compare
  • Added Database::getLastError()

1.13

03 May 10:48
Compare
Choose a tag to compare
  • Optimistic locking
  • Refactoring of mapping configs.
  • Default argument removed from Collection::getOption().
  • Removed deprecated method Collection::saveDocument().
  • Removed deprecated method Client::setConnection(). Use Client::setMongoClient().
  • Removed deprecated method Client::getConnection(). Use Client::getMongoClient().
  • Removed Document::pushFromArray(). Use Document::pushEach().
  • Removed Paginator::setQueryBuilder()’. UsePaginator::setCursor()`.
  • Removed Document::fromArray(). Use Document::merge() instead.
  • Removed Structure::load(). Use merge or mergeUnmidified instead.
  • Revision methods moved to RevisionManager. Call them from Document instance directly is deprecated. Use Document::getRevisionManager() instead.
  • Mark Document::_scenario as private.
  • Define relations in mapping.
  • Operator::getAll() is deprecated. Use Operator::toArray().
  • Protected access of property Structure::_modifiedFields is deprecated. Use self::getModifiedFields().
  • Protected access of property Structure::_originalData is deprecated. Use self::getOriginalData().
  • Removed classes QueryBuilder and GridFSQueryBuilder. Hydration logic improved
  • Refactor document saving
  • Collection::deleteDocument() is deprecated. Use Document::delete()
  • Collection::isVersioningEnabled() and Collection::enableVersioning() are deprecated. Use 'vrsioning' in mapping.
  • Collection properties 'documentClass', 'versioning', '_index' and '_queryExpressionClass' are deprecated. Use mapping declarations instead.

1.12.8

03 Mar 08:29
Compare
Choose a tag to compare
  • Method 'Validator::validate()' marked as final
  • Refactoring of document relations
  • Document::belongsToCollection() now deprecated. Use Collection::hasDocument()
  • Refactoring of document events

1.12.7

19 Feb 22:52
Compare
Choose a tag to compare

Define cursor's batch size

1.12.6

06 Feb 06:56
Compare
Choose a tag to compare
  • Accept expression array and callable when call Collection::getDistinct()

1.12.5

01 Feb 13:09
Compare
Choose a tag to compare
  • Fix update when expression defined as callable
  • Fix deleting documents when expression specified as callable

1.12.4

27 Jan 14:58
Compare
Choose a tag to compare
  • If callable in Dollection::getDocument() specified, document always loaded directly omitting document pool.
  • Fixed 'in' validator when custom error message specified
  • Dependency from major version number of Symfony Event Dispatcher