|
1 | 1 | CHANGELOG for 2.0.x |
2 | 2 | =================== |
3 | 3 |
|
4 | | -Welcome to ODMng! |
| 4 | +2.0.0-Beta1 (2018-12-24) |
| 5 | +------------------------ |
5 | 6 |
|
6 | | -Upgrade Path |
7 | | ------------- |
| 7 | +Deprecated functionality has been removed. Please check the |
| 8 | +[UPGRADE-2.0 document](https://github.com/doctrine/mongodb-odm/blob/master/UPGRADE-2.0.md) |
| 9 | +to review the changes. |
8 | 10 |
|
9 | | -#### Deprecated code has been removed |
10 | | - |
11 | | -Please review list of deprecated functionality we included with previous releases and adhere |
12 | | -to made suggestions: |
13 | | - |
14 | | -* [1.1 release](https://github.com/doctrine/mongodb-odm/blob/1.1.x/CHANGELOG-1.1.md#deprecations) |
15 | | -* [1.2 release](https://github.com/doctrine/mongodb-odm/blob/1.2.x/CHANGELOG-1.2.md#deprecations) |
16 | | - |
17 | | -#### `AnnotationDriver::registerAnnotationClasses()` has been removed |
18 | | - |
19 | | -`registerAnnotationClasses()` method was registering ODM annotations in the `AnnotationRegistry` |
20 | | -and was recommended to be called during bootstrap of your application. The new way to ensure |
21 | | -annotations can be autoloaded properly is registering Composer's autoloader instead: |
22 | | - |
23 | | -```php |
24 | | -use Doctrine\Common\Annotations\AnnotationRegistry; |
25 | | - |
26 | | -$loader = require_once('path/to/vendor/autoload.php'); |
27 | | - |
28 | | -AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
29 | | -``` |
| 11 | + - [1904: Always use dump method from VarDumper component](https://github.com/doctrine/mongodb-odm/pull/1904) thanks to @alcaeus |
| 12 | + - [1903: Throw exception on duplicate database names within a document](https://github.com/doctrine/mongodb-odm/pull/1903) thanks to @alcaeus and @vmattila |
| 13 | + - [1894: Fix inheritance of GridFS mapping properties](https://github.com/doctrine/mongodb-odm/pull/1894) thanks to @alcaeus |
| 14 | + - [1893: Fix missing proxy directory](https://github.com/doctrine/mongodb-odm/pull/1893) thanks to @alcaeus and @olvlvl |
| 15 | + - [1871: Enforce typemap](https://github.com/doctrine/mongodb-odm/pull/1871) thanks to @alcaeus |
| 16 | + - [1831: [2.0] Fix wrong element deletion in popFirst and popLast](https://github.com/doctrine/mongodb-odm/pull/1831) thanks to @alcaeus and @juliusxyg |
| 17 | + - [1829: Improve SchemaManager logic for comparing text indexes](https://github.com/doctrine/mongodb-odm/pull/1829) thanks to @jmikola |
| 18 | + - [1798: [2.0] Fix querying fields in reference structures](https://github.com/doctrine/mongodb-odm/pull/1798) thanks to @alcaeus and @malarzm |
| 19 | + - [1797: [2.0] Implicitly cascade remove operations when orphanRemoval is enabled](https://github.com/doctrine/mongodb-odm/pull/1797) thanks to @alcaeus |
| 20 | + - [1786: [2.0] Fix hydration of proxy objects with lazy public properties](https://github.com/doctrine/mongodb-odm/pull/1786) thanks to @alcaeus |
| 21 | + - [1906: Forbid mapping class by more than one AbstractDocument](https://github.com/doctrine/mongodb-odm/pull/1906) thanks to @malarzm |
| 22 | + - [1905: Don't dump to stdout in query command](https://github.com/doctrine/mongodb-odm/pull/1905) thanks to @alcaeus |
| 23 | + - [1902: Remove eager cursor functionality without replacement](https://github.com/doctrine/mongodb-odm/pull/1902) thanks to @alcaeus |
| 24 | + - [1901: Fix skipped tests](https://github.com/doctrine/mongodb-odm/pull/1901) thanks to @alcaeus |
| 25 | + - [1896: Drop dependency on doctrine/common](https://github.com/doctrine/mongodb-odm/pull/1896) thanks to @alcaeus |
| 26 | + - [1895: Drop "simple" attribute from references in XML schema](https://github.com/doctrine/mongodb-odm/pull/1895) thanks to @alcaeus |
| 27 | + - [1892: Use dedicated assertContainsOnlyInstancesOf assertion](https://github.com/doctrine/mongodb-odm/pull/1892) thanks to @carusogabriel |
| 28 | + - [1887: Exception when persisting class unlisted in disciminator map (Issue 867)](https://github.com/doctrine/mongodb-odm/pull/1887) thanks to @watari |
| 29 | + - [1886: add php 7.3 to travis](https://github.com/doctrine/mongodb-odm/pull/1886) thanks to @andreybolonin |
| 30 | + - [1880: Optimized nested collections deletion in DocumentPersister](https://github.com/doctrine/mongodb-odm/pull/1880) thanks to @watari |
| 31 | + - [1878: Update CHANGELOG-2.0.md](https://github.com/doctrine/mongodb-odm/pull/1878) thanks to @ajant |
| 32 | + - [1872: Sort packages in composer.json](https://github.com/doctrine/mongodb-odm/pull/1872) thanks to @garak |
| 33 | + - [1867: Update PHPStan](https://github.com/doctrine/mongodb-odm/pull/1867) thanks to @alcaeus |
| 34 | + - [1860: Update to Doctrine CS 5.0](https://github.com/doctrine/mongodb-odm/pull/1860) thanks to @alcaeus |
| 35 | + - [1847: [2.0] Test update: ODM no longer supports PHP < 7.2](https://github.com/doctrine/mongodb-odm/pull/1847) thanks to @caciobanu and @alcaeus |
| 36 | + - [1845: [2.0] Upgrade dependencies version](https://github.com/doctrine/mongodb-odm/pull/1845) thanks to @caciobanu |
| 37 | + - [1844: [2.0] Require php : ^7.2](https://github.com/doctrine/mongodb-odm/pull/1844) thanks to @caciobanu and @alcaeus |
| 38 | + - [1836: Added dev autoload for composer & removed it from tests boostrap.](https://github.com/doctrine/mongodb-odm/pull/1836) thanks to @caciobanu |
| 39 | + - [1834: [2.0] Consistently use kebab-case in XML mappings](https://github.com/doctrine/mongodb-odm/pull/1834) thanks to @alcaeus |
| 40 | + - [1827: Remove obsolete syntaxCheck option in PHPUnit config](https://github.com/doctrine/mongodb-odm/pull/1827) thanks to @jmikola |
| 41 | + - [1825: Use PSR-4](https://github.com/doctrine/mongodb-odm/pull/1825) thanks to @caciobanu |
| 42 | + - [1820: Use dedicated PHPUnit assertions](https://github.com/doctrine/mongodb-odm/pull/1820) thanks to @carusogabriel |
| 43 | + - [1819: Improvements](https://github.com/doctrine/mongodb-odm/pull/1819) thanks to @carusogabriel |
| 44 | + - [1812: [2.0] Drop namespace property from ClassMetadata](https://github.com/doctrine/mongodb-odm/pull/1812) thanks to @caciobanu and @alcaeus |
| 45 | + - [1803: Increase PHPStan's level](https://github.com/doctrine/mongodb-odm/pull/1803) thanks to @malarzm |
| 46 | + - [1802: [2.0] Drop bool from supported values - Configuration class](https://github.com/doctrine/mongodb-odm/pull/1802) thanks to @caciobanu |
| 47 | + - [1801: Stop accepting bools in int|bool Configuration methods](https://github.com/doctrine/mongodb-odm/issues/1801) thanks to @malarzm |
| 48 | + - [1800: Fix new CS violations](https://github.com/doctrine/mongodb-odm/pull/1800) thanks to @malarzm |
| 49 | + - [1799: [2.0] Clean up docblocks in Configuration class - #1796](https://github.com/doctrine/mongodb-odm/pull/1799) thanks to @caciobanu and @alcaeus |
| 50 | + - [1771: [2.0] Forbid combining repositoryMethod with skip, sort and limit](https://github.com/doctrine/mongodb-odm/pull/1771) thanks to @malarzm and @alcaeus |
| 51 | + - [1770: Use ::class where possible](https://github.com/doctrine/mongodb-odm/pull/1770) thanks to @malarzm |
| 52 | + - [1762: Stop ignoring DoubleQuoteUsage.ContainsVar](https://github.com/doctrine/mongodb-odm/pull/1762) thanks to @malarzm |
| 53 | + - [1759: Stop ignoring TypeHintDeclaration.MissingPropertyTypeHint](https://github.com/doctrine/mongodb-odm/pull/1759) thanks to @malarzm |
| 54 | + - [1758: Various small CS fixes](https://github.com/doctrine/mongodb-odm/pull/1758) thanks to @malarzm |
| 55 | + - [1757: Stop ignoring ControlStructures.EarlyExit](https://github.com/doctrine/mongodb-odm/pull/1757) thanks to @malarzm |
| 56 | + - [1756: Stop ignoring UnusedPrivateElements sniffs](https://github.com/doctrine/mongodb-odm/pull/1756) thanks to @malarzm |
| 57 | + - [1755: Remove NativePhpunitTask](https://github.com/doctrine/mongodb-odm/pull/1755) thanks to @malarzm |
| 58 | + - [1743: Add phpcs to build and apply automatic fixes](https://github.com/doctrine/mongodb-odm/pull/1743) thanks to @alcaeus |
| 59 | + - [1734: [2.0] Remove YAML mapping support](https://github.com/doctrine/mongodb-odm/pull/1734) thanks to @malarzm and @alcaeus |
| 60 | + - [1733: [2.0] Merge ClassMetadataInfo into ClassMetadata](https://github.com/doctrine/mongodb-odm/pull/1733) thanks to @carusogabriel and @alcaeus |
| 61 | + - [1722: [2.0] Disallow nested commits](https://github.com/doctrine/mongodb-odm/pull/1722) thanks to @malarzm |
| 62 | + - [1721: [2.0] Remove DocumentManager::createDbRef](https://github.com/doctrine/mongodb-odm/pull/1721) thanks to @malarzm |
| 63 | + - [1720: [2.0] Remove deprecations in query helpers](https://github.com/doctrine/mongodb-odm/pull/1720) thanks to @malarzm |
| 64 | + - [1719: [2.0] Remove repositories' magic findBy and findOneBy](https://github.com/doctrine/mongodb-odm/pull/1719) thanks to @malarzm |
| 65 | + - [1718: [2.0] Remove database creation from SchemaManager](https://github.com/doctrine/mongodb-odm/pull/1718) thanks to @malarzm |
| 66 | + - [1717: [2.0] Make DefaultRepositoryFactory final](https://github.com/doctrine/mongodb-odm/pull/1717) thanks to @malarzm |
| 67 | + - [1716: [2.0] Remove slaveOkay remainders](https://github.com/doctrine/mongodb-odm/pull/1716) thanks to @malarzm |
| 68 | + - [1715: [2.0] Drop support for UnitOfWork::flush($document)](https://github.com/doctrine/mongodb-odm/pull/1715) thanks to @malarzm and @alcaeus |
| 69 | + - [1714: Add PHPStan](https://github.com/doctrine/mongodb-odm/pull/1714) thanks to @carusogabriel and @alcaeus |
| 70 | + - [1708: [2.0] Drop commands to generate repository and entity stubs](https://github.com/doctrine/mongodb-odm/pull/1708) thanks to @alcaeus |
| 71 | + - [1692: Use Null Coalesce Operator](https://github.com/doctrine/mongodb-odm/pull/1692) thanks to @carusogabriel |
| 72 | + - [1691: Clean elses](https://github.com/doctrine/mongodb-odm/pull/1691) thanks to @carusogabriel |
| 73 | + - [1673: [2.0] Remove slaveOkay](https://github.com/doctrine/mongodb-odm/pull/1673) thanks to @malarzm |
| 74 | + - [1502: [2.0] Use storeAs=dbRef as the new default setting for references](https://github.com/doctrine/mongodb-odm/pull/1502) thanks to @coudenysj |
| 75 | + - [1485: [2.0] Bump PHP to 7.0](https://github.com/doctrine/mongodb-odm/pull/1485) thanks to @malarzm |
| 76 | + - [1480: [2.0] Remove simple references leftovers](https://github.com/doctrine/mongodb-odm/pull/1480) thanks to @malarzm |
| 77 | + - [1478: [2.0] Remove DiscriminatorField's name and fieldName](https://github.com/doctrine/mongodb-odm/pull/1478) thanks to @malarzm |
| 78 | + - [1476: [2.0] Remove requireIndexes and stuff thereto related](https://github.com/doctrine/mongodb-odm/pull/1476) thanks to @malarzm |
| 79 | + - [1475: [2.0] Remove deprecated argument from DocumentPersister::refresh](https://github.com/doctrine/mongodb-odm/pull/1475) thanks to @malarzm |
| 80 | + - [1474: [2.0] Remove deprecated increment type](https://github.com/doctrine/mongodb-odm/pull/1474) thanks to @malarzm |
| 81 | + - [1471: [2.0] Remove deprecated annotations](https://github.com/doctrine/mongodb-odm/pull/1471) thanks to @malarzm |
| 82 | + - [867: Exception when persisting class unlisted in disciminator map](https://github.com/doctrine/mongodb-odm/issues/867) thanks to @jmikola |
| 83 | + - [563: If the database value of @DiscriminatorField changes to unsupported value, an Exception should be thrown instead of PHP Notice](https://github.com/doctrine/mongodb-odm/issues/563) thanks to @vmattila |
| 84 | + - [1891: Fix fieldName with field-name](https://github.com/doctrine/mongodb-odm/pull/1891) thanks to @olvlvl |
| 85 | + - [1883: Added more strict types for docs (Issue #1783)](https://github.com/doctrine/mongodb-odm/pull/1883) thanks to @watari |
| 86 | + - [1881: [2.0] Documentation: fix schema create command namespace](https://github.com/doctrine/mongodb-odm/pull/1881) thanks to @l-vo |
| 87 | + - [1856: Add UPGRADE document for ODM 2.0](https://github.com/doctrine/mongodb-odm/pull/1856) thanks to @alcaeus |
| 88 | + - [1839: Fix code blocks](https://github.com/doctrine/mongodb-odm/pull/1839) thanks to @jdreesen |
| 89 | + - [1783: [2.0] Update docs for strict typing](https://github.com/doctrine/mongodb-odm/issues/1783) thanks to @alcaeus |
| 90 | + - [1910: Separate index creation options from index options](https://github.com/doctrine/mongodb-odm/pull/1910) thanks to @alcaeus and @jmikola |
| 91 | + - [1875: Drop doctrine/common proxies in favor of ProxyManager](https://github.com/doctrine/mongodb-odm/pull/1875) thanks to @alcaeus |
| 92 | + - [1866: Replace QueryLogger in tests with CommandLogger](https://github.com/doctrine/mongodb-odm/pull/1866) thanks to @alcaeus |
| 93 | + - [1848: Finalize sharding support for 2.0](https://github.com/doctrine/mongodb-odm/pull/1848) thanks to @alcaeus |
| 94 | + - [1846: [2.0] Add type hints](https://github.com/doctrine/mongodb-odm/pull/1846) thanks to @caciobanu and @alcaeus |
| 95 | + - [1814: [2.0] Validate mapping files against schema](https://github.com/doctrine/mongodb-odm/pull/1814) thanks to @alcaeus |
| 96 | + - [1807: [2.0] Separate ID mapping from fields in XML driver](https://github.com/doctrine/mongodb-odm/pull/1807) thanks to @alcaeus |
| 97 | + - [1790: [2.0] Add GridFS implementation on top of mongodb/mongodb](https://github.com/doctrine/mongodb-odm/pull/1790) thanks to @alcaeus |
| 98 | + - [1553: [2.0] Replace doctrine/mongodb for mongodb/mongodb and ext-mongodb](https://github.com/doctrine/mongodb-odm/pull/1553) thanks to @alcaeus |
| 99 | + - [1051: [RFC] "Nested" calls to DocumentManager::flush()](https://github.com/doctrine/mongodb-odm/issues/1051) thanks to @alcaeus |
0 commit comments