Releases: doctrine/mongodb-odm
1.2.7
1.2.7
- Total issues resolved: 1
- Total pull requests resolved: 3
- Total contributors: 3
Bug
- 1966: Fix embedding documents containing named indexes thanks to @alcaeus and @Steveb-p
- 1962: Fix wrong usage of discriminator map in complex document inheritance chains thanks to @alcaeus
Documentation
1.2.6
1.2.6
- Total issues resolved: 1
- Total pull requests resolved: 3
- Total contributors: 3
bug
2.0.0 Beta 1
Doctrine MongoDB 2.0.0 Beta-1
We are happy to announce the first Beta Release of Doctrine MongoDB ODM 2.0. As this is still a pre-release version, please do not run it in production. Errors and performance issues may occur. The public API is now considered stable, although BC breaks may happen due to bugs or performance issues.
Changes since Alpha 1
The API is now considered stable, which means that we'll preserve BC for any features in Beta 1. BC breaks may happen if they are necessary to fix bugs in newly introduced functionality or performance issues. The main change is that proxy objects no longer implement the Doctrine proxy interface but rather the GhostObjectInterface from ocramius/proxy-manager. You only need to make changes if you interact with proxies manually. In that case, you need to update your proxy checks and any calls to proxy objects that deal with the proxy architecture.
Next steps
Before we can build a release candidate, we want to ensure that the performance of the library does not suffer from regressions. Thus, work will focus on building a performance test suite to ensure this. If you notice any performance issues in this release, please create an issue in our issue tracker.
At the same time, we will work on MongoDB ODM 1.3, which will contain a forward compatibility layer for BC breaks introduced in 2.0 and will warn you of deprecated features. This release will be the last release of the 1.x line and is meant to ease migration to 2.0 and provides a longer support window for people who can't upgrade to PHP 7.2 yet.
Installation
You can install this version of MongoDB ODM by using Composer and the following composer.json contents:
{
    "require": {
        "doctrine/mongodb-odm": "^2.0@beta"
    }
}
Full 2.0 changelog
- 1904: Always use dump method from VarDumper component thanks to @alcaeus
- 1903: Throw exception on duplicate database names within a document thanks to @alcaeus and @vmattila
- 1894: Fix inheritance of GridFS mapping properties thanks to @alcaeus
- 1893: Fix missing proxy directory thanks to @alcaeus and @olvlvl
- 1871: Enforce typemap thanks to @alcaeus
- 1831: [2.0] Fix wrong element deletion in popFirst and popLast thanks to @alcaeus and @juliusxyg
- 1829: Improve SchemaManager logic for comparing text indexes thanks to @jmikola
- 1798: [2.0] Fix querying fields in reference structures thanks to @alcaeus and @malarzm
- 1797: [2.0] Implicitly cascade remove operations when orphanRemoval is enabled thanks to @alcaeus
- 1786: [2.0] Fix hydration of proxy objects with lazy public properties thanks to @alcaeus
- 1906: Forbid mapping class by more than one AbstractDocument thanks to @malarzm
- 1905: Don't dump to stdout in query command thanks to @alcaeus
- 1902: Remove eager cursor functionality without replacement thanks to @alcaeus
- 1901: Fix skipped tests thanks to @alcaeus
- 1896: Drop dependency on doctrine/common thanks to @alcaeus
- 1895: Drop "simple" attribute from references in XML schema thanks to @alcaeus
- 1892: Use dedicated assertContainsOnlyInstancesOf assertion thanks to @carusogabriel
- 1887: Exception when persisting class unlisted in disciminator map (Issue 867) thanks to @watari
- 1886: add php 7.3 to travis thanks to @andreybolonin
- 1880: Optimized nested collections deletion in DocumentPersister thanks to @watari
- 1878: Update CHANGELOG-2.0.md thanks to @ajant
- 1872: Sort packages in composer.json thanks to @garak
- 1867: Update PHPStan thanks to @alcaeus
- 1860: Update to Doctrine CS 5.0 thanks to @alcaeus
- 1847: [2.0] Test update: ODM no longer supports PHP < 7.2 thanks to @caciobanu and @alcaeus
- 1845: [2.0] Upgrade dependencies version thanks to @caciobanu
- 1844: [2.0] Require php : ^7.2 thanks to @caciobanu and @alcaeus
- 1836: Added dev autoload for composer & removed it from tests boostrap. thanks to @caciobanu
- 1834: [2.0] Consistently use kebab-case in XML mappings thanks to @alcaeus
- 1827: Remove obsolete syntaxCheck option in PHPUnit config thanks to @jmikola
- 1825: Use PSR-4 thanks to @caciobanu
- 1820: Use dedicated PHPUnit assertions thanks to @carusogabriel
- 1819: Improvements thanks to @carusogabriel
- 1812: [2.0] Drop namespace property from ClassMetadata thanks to @caciobanu and @alcaeus
- 1803: Increase PHPStan's level thanks to @malarzm
- 1802: [2.0] Drop bool from supported values - Configuration class thanks to @caciobanu
- 1801: Stop accepting bools in int|bool Configuration methods thanks to @malarzm
- 1800: Fix new CS violations thanks to @malarzm
- 1799: [2.0] Clean up docblocks in Configuration class - #1796 thanks to @caciobanu and @alcaeus
- 1771: [2.0] Forbid combining repositoryMethod with skip, sort and limit thanks to @malarzm and @alcaeus
- 1770: Use ::class where possible thanks to @malarzm
- 1762: Stop ignoring DoubleQuoteUsage.ContainsVar thanks to @malarzm
- 1759: Stop ignoring TypeHintDeclaration.MissingPropertyTypeHint thanks to @malarzm
- 1758: Various small CS fixes thanks to @malarzm
- 1757: Stop ignoring ControlStructures.EarlyExit thanks to @malarzm
- 1756: Stop ignoring UnusedPrivateElements sniffs thanks to @malarzm
- 1755: Remove NativePhpunitTask thanks to @malarzm
- 1743: Add phpcs to build and apply automatic fixes thanks to @alcaeus
- 1734: [2.0] Remove YAML mapping support thanks to @malarzm and @alcaeus
- 1733: [2.0] Merge ClassMetadataInfo into ClassMetadata thanks to @carusogabriel and @alcaeus
- 1722: [2.0] Disallow nested commits thanks to @malarzm
- 1721: [2.0] Remove DocumentManager::createDbRef thanks to @malarzm
- 1720: [2.0] Remove deprecations in query helpers thanks to @malarzm
- 1719: [2.0] Remove repositories' magic findBy and findOneBy thanks to @malarzm
- 1718: [2.0] Remove database creation from SchemaManager thanks to @malarzm
- 1717: [2.0] Make DefaultRepositoryFactory final thanks to @malarzm
- 1716: [2.0] Remove slaveOkay remainders thanks to @malarzm
- 1715: [2.0] Drop support for UnitOfWork::flush($document) thanks to @malarzm and @alcaeus
- 1714: Add PHPStan thanks to @carusogabriel and @alcaeus
- 1708: [2.0] Drop commands to generate repository and entity stubs thanks to @alcaeus
- 1692: Use Null Coalesce Operator thanks to @carusogabriel
- 1691: Clean elses thanks to @carusogabriel
- [1673: [2.0] Remove slaveOkay](https://github.com/doctrine...
2.0.0 Alpha 1
Doctrine MongoDB 2.0.0 Alpha Release
We are happy to announce the first Alpha Release of Doctrine MongoDB ODM 2.0. As this is still a pre-release version, please do not run it in production. Errors and performance issues may occur, and the public API may still change until the beta stage.
What is new in 2.0?
The main difference is that you no longer need an adapter to run on PHP 7. ODM now uses the new MongoDB driver by default. We have also completely rewritten GridFS support, updated our code to use type hints and we now use PHPStan to better inspect our code and prevent bugs.
To see the full list of changes and how to upgrade, please see the UPGRADE document.
All issues and pull requests in this release may be found under the 2.0 milestone.
Next steps
The next release will be Beta 1, at which time the API will be finalised. We will try to not break BC once we've entered the beta stage. Among the breaking changes planned until Beta 1 is a rewrite of the proxy logic to no longer use doctrine/common for proxies.
Installation
You can install this version of MongoDB ODM by using Composer and the following composer.json contents:
{
    "require": {
        "doctrine/mongodb-odm": "^2.0@alpha"
    }
}
1.2.5
1.2.4
1.2.3
1.2.1
1.2.0
Doctrine MongoDB 1.2.0 Release
We are happy to announce the availability of Doctrine MongoDB ODM 1.2.0.
What is new in 1.2.0?
Please see the UPGRADE document for notable changes.
All issues and pull requests in this release may be found under the 1.2 milestone.
Installation
You can install this version of MongoDB ODM by using Composer and the following composer.json contents:
{
    "require": {
        "doctrine/mongodb-odm": "^1.2.0"
    }
}