Releases: doctrine/mongodb-odm
2.0.0-RC1
2.0.0-RC1
- Total issues resolved: 12
- Total pull requests resolved: 29
- Total contributors: 14
Bug
- 2025: Fix wrong usage of discriminator map in complex document inheritance chains thanks to @alcaeus and @josefsabl
- 2006: Run appropriate query operations when replacing documents thanks to @alcaeus and @jmikola
- 2002: Document class is unlisted in the discriminator map - using no discriminator map thanks to @josefsabl
- 1996: Fix dir permissions for proxies thanks to @josefsabl
- 1995: Proxy directory is created with wrong permissions thanks to @josefsabl
- 1991: Fix generation of proxy classes thanks to @alcaeus and @strobox
- 1989: Fix metadata storage when uploading GridFS files thanks to @alcaeus and @josefsabl
- 1983: Allow returning null from getAssociationTargetClass thanks to @malarzm and @Dragonqos
- 1967: Add missing
addFields
method for Stage abstract thanks to @Steveb-p - 1965: Fix wrong behavior of sortMeta thanks to @Mihail0v
- 1944: fix: replace string assertion with array assertion for $filter thanks to @thiver
- 1932: [2.0] Fix serialisation of uninitialised PersistentCollection instances thanks to @alcaeus
- 1926: Fix wrong capitalisation of attributes for GridFS mappings thanks to @alcaeus
- 1922: Fix wrong usage of sequence vs. choice in XSD thanks to @alcaeus
- 1918: Fix incorrect schema commands behaviour thanks to @Rybbow
Documentation
- 2013: Update default reference primier's code thanks to @malarzm
- 1953: [2.0] Add missing documentation of same-namespace resolution drop thanks to @alcaeus
- 1928: Use same documentation for notSaved in all annotations thanks to @alcaeus
- 1920: Generating proxy classes only when file not exists thanks to @Rybbow
Task
- 1984: Mark classes as final thanks to @malarzm
- 1960: Mark methods and classes as internal thanks to @malarzm and @alcaeus
- 1956: Remove previously deprecated operations from Query Builder thanks to @jmikola
- 1942: Finish renaming dirtyCheck methods thanks to @alcaeus
- 1938: Renamed scheduledForDirtyCheck thanks to @juliusstoerrle
- 1937: Removed PHP 5.5 workaround thanks to @juliusstoerrle
Enhancement
- 2021: Dump xdebug filter to improve code coverage build performance thanks to @alcaeus
- 2020: Make addStage Aggregation Builder method public thanks to @alcaeus
- 2017: Allow specifying generic options for Query find operations thanks to @jmikola
- 1969: remove unnecessary files for production thanks to @rvitaliy
- 1963: Test against supported versions of MongoDB thanks to @alcaeus
- 1958: Allow Symfony 3.4 thanks to @Seb33300
- 1693: Schema manager should handle shard key on reference thanks to @notrix
1.3.0-RC1
1.3.0-RC1
- Total issues resolved: 4
- Total pull requests resolved: 20
- Total contributors: 2
Documentation
- 2022: Reword most deprecation notices thanks to @alcaeus
- 2012: Document more BC breaks thanks to @alcaeus
- 1952: Clarify deprecation block for same-namespace resolution thanks to @alcaeus
- 1696: [2.0] Document BC breaks and add deprecations in 1.3 thanks to @alcaeus
Task
- 2008: Mark classes as @final and deprecate extending them thanks to @malarzm
- 2003: Fix tests against php 7.4snapshot thanks to @alcaeus
- 1972: [1.3] Use build stages in .travis.yml thanks to @alcaeus
- 1950: [1.3] Deprecate GridFS mappings thanks to @alcaeus
- 1949: [1.3] Deprecate proxies from doctrine/common thanks to @alcaeus
- 1947: Remove usage of deprecated ClassMetadataInfo class in hydrators thanks to @alcaeus
- 1946: [1.3] Rename scheduleForDirtyFlag thanks to @alcaeus
- 1939: Removed PHP 5.5 workaround thanks to @alcaeus
- 1841: [1.3] Deprecate passing bool to autogenerate methods. thanks to @malarzm
- 1840: [1.3] Deprecate setDefaultRepositoryClassName and getDefaultRepositoryClassName thanks to @malarzm
- 1772: Deprecate combining repositoryMethod with skip, sort and limit thanks to @malarzm
Enhancement
Bug
Feature
- 1993: Support metadata class name resolution in ResolveTargetDocumentListener thanks to @alcaeus
- 1948: [1.3] Optimize nested collection deletions thanks to @alcaeus
- 1927: Deprecate more features in preparation for 2.0 thanks to @alcaeus
- 1924: Add deprecation layers thanks to @alcaeus
- 1730: Converter to XML for mapping thanks to @malarzm
1.2.9
1.2.9
- Total issues resolved: 1
- Total pull requests resolved: 2
- Total contributors: 2
Bug
Documentation
1.2.8
1.2.8
- Total issues resolved: 1
- Total pull requests resolved: 3
- Total contributors: 2
Bug
- 1978: Revert "Fix wrong usage of discriminator map in complex document inheritance chains" thanks to @alcaeus and @rieschl
- 1977: [1.2] Fix sharding commands for MongoDB 4.0 thanks to @alcaeus
Documentation
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"
}
}