Releases: doctrine/orm
2.16.0
Release Notes for 2.16.0
2.16.0
- Total issues resolved: 0
- Total pull requests resolved: 15
- Total contributors: 7
New Feature
Improvements
-
10848: Use properties instead of getters to read property/class names via reflection thanks to @nicolas-grekas
-
10832: Decouple public API from Doctrine\Persistence\Proxy thanks to @nicolas-grekas
-
10785: Add a safeguard against multiple objects competing for the same identity map entry thanks to @mpdude
-
10735: Make it possible to have non-NULLable self-referencing associations when using application-provided IDs thanks to @mpdude
-
10547: Compute the commit order (inserts/deletes) on the entity level thanks to @mpdude
-
10833: Cleanup psalm-type AutogenerateMode thanks to @nicolas-grekas
-
10598: Support not Insertable/Updateable columns for entities with
JOINED
inheritance type thanks to @e-vil-dev
Deprecation
- 10743: Make EntityPersisters tell the UoW about post insert IDs early thanks to @mpdude
- 10455: Make Annotations/Attribute mapping drivers report fields for the classes where they are declared thanks to @mpdude
Static Analysis
Test Suite
2.15.5
Release Notes for 2.15.5
2.15.x bugfix release (patch)
2.15.5
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
Bugfixes
2.15.4
Release Notes for 2.15.4
2.15.x bugfix release (patch)
2.15.4
- Total issues resolved: 0
- Total pull requests resolved: 18
- Total contributors: 8
Documentation
- 10847: Remove toc thanks to @greg0ire
- 10828: Match namespace in XML file with namespace in XSD file thanks to @greg0ire
- 10812: Remove lone dash thanks to @greg0ire
- 10800: Explain
EntityManager::getReference()
peculiarities thanks to @mpdude
Static Analysis
- 10842: PHPStan 1.10.25, Psalm 5.13.1 thanks to @derrabus
- 10804: Follow recommendation about multiline type thanks to @greg0ire
- 10802: Upgrade to Psalm 5.13 thanks to @greg0ire
CI
Bug
- 10819: Fix cloning entities when using lazy-ghost proxies thanks to @nicolas-grekas
- 10813: Let XML driver treat <id> field attributes same as regular <field> tag thanks to @Greg0
- 10806: Fix enum change set recomputation on single entity thanks to @rmikalkenas
- 10791: Avoid creating unmanaged proxy instances for referred-to entities during
merge()
thanks to @mpdude - 10789: distinct() updates QueryBuilder state correctly thanks to @macroparts
- 10786: Fix attach entity listener when reset class metadata factory thanks to @vuongxuongminh
Test Suite
- 10807: Move three "Ticket/"-style tests to the right namespace thanks to @mpdude
- 10803: Fix unserialize() errors when running tests on PHP 8.3 thanks to @nicolas-grekas
- 10798: Resort on Query::HINT_FORCE_PARTIAL_LOAD less thanks to @greg0ire
Code Style
2.15.3
Release Notes for 2.15.3
2.15.x bugfix release (patch)
2.15.3
- Total issues resolved: 0
- Total pull requests resolved: 11
- Total contributors: 8
Bugfixes
- 10762: Don't call canEmulateSchemas in SchemaTool when possible thanks to @nicolas-grekas
- 10759: Don't call deprecated getSQLResultCasing and usesSequenceEmulatedIdentityColumns when we know the platform thanks to @nicolas-grekas
- 10758: revert: transform backed enum to value thanks to @Gwemox
- 10747: fix: OneToManyPersister does not take custom identifier types into account for orphan removal thanks to @wtfzdotnet
- 10645: Restore document proxy state to uninitialized on load exception thanks to @notrix
- 10763: Defer removing removed entities from to-many collections until after transaction commit thanks to @mpdude
Static Analysis
- 10771: PHPStan 1.10.18, Psalm 5.12.0 thanks to @derrabus
- 10740: Remove useless ignore rule thanks to @greg0ire
Test Suite
- 10780: Avoid partial thanks to @greg0ire
Documentation
2.15.2
Release Notes for 2.15.2
2.15.x bugfix release (patch)
2.15.2
- Total issues resolved: 0
- Total pull requests resolved: 8
- Total contributors: 8
Documentation
- 10734: Document pdo_sqlite requirement for tests thanks to @greg0ire
- 10708: Correct docs link thanks to @mbabker
- 10686: Documentation typo thanks to @edent
Bugfixes
- 10666: Create
ReflectionReadonlyProperty
from their declaring class so their value can be set thanks to @MatTheCat - 10643: Fix single table inheritance with intermediate abstract class(es) thanks to @htto
- 10508: Fix id hash of entity with enum as identifier thanks to @Gwemox
- 10486: Fix to-many collections left in dirty state after entities are removed by the UoW thanks to @mpdude
Deprecation fixes
2.15.1
Release Notes for 2.15.1
2.15.1
- Total issues resolved: 0
- Total pull requests resolved: 6
- Total contributors: 4
Bug
- 10684: Support unserializing 2.14 ParserResult instances thanks to @derrabus
- 10671: Fix attribute ManyToMany mapping thanks to @BoShurik
Static Analysis
- 10679: Upgrade to Psalm 5.11.0 thanks to @greg0ire
- 10677: Upgrade to Psalm 5.10.0 thanks to @greg0ire
Documentation
2.15.0
Release Notes for 2.15.0
Feature release (minor)
2.15.0
- Total issues resolved: 1
- Total pull requests resolved: 30
- Total contributors: 8
New Features
- 10234: Support
NOT
expression thanks to @remi-san
Improvements
- 10601: Support options like charset and collation on DiscriminatedColumn thanks to @JanTvrdik
- 10599: fix(persistent-collection): check association is not nullable before using it as an array thanks to @amina-seraoui
- 10473: Allow to-many associations on mapped superclasses w/ ResolveTargetEntityListener thanks to @mpdude
- 10397: Factor out logic that tracks mapping inheritance thanks to @mpdude
- 10351: Allow
doctrine/instantiator
2 thanks to @derrabus
Deprecations
- 10654: Deprecate usage of
@JoinColumn
on the inverse side of one-to-one associations thanks to @mpdude - 10519: Deprecate overriding associations not inherited from a mapped superclass thanks to @mpdude
- 10470: Deprecate overriding fields/associations inherited from other entities thanks to @mpdude
- 10423: Add deprecations for "table per class" inheritance thanks to @mpdude
Bugfixes
- 10554: Make "targetEntity must not be a mapped superclass" a lazy check thanks to @mpdude and @alexander-schranz
Static Analysis
- 10602: Remove duplicate array shape thanks to @greg0ire
- 10478: Move psalm types to ClassMetadata thanks to @greg0ire
- 10442: Add embedded class mapping array shape thanks to @greg0ire
- 10430: Use FieldMapping array shape even more thanks to @greg0ire
- 10408: Field mapping improvements thanks to @greg0ire
- 10403: Reuse association mapping array shape thanks to @greg0ire
- 10381: Use more precise types for class strings thanks to @greg0ire
- 10372: Use the same type as in the DBAL thanks to @greg0ire
- 10365: Address new behavior of $firstResult thanks to @greg0ire
- 10156: Identity map cannot contains null value thanks to @PowerKiKi
- 10513: Use array shapes where appropriate thanks to @greg0ire
Test Suite
- 10569: Address deprecation of fetchAll() thanks to @greg0ire
- 10545: Make data providers static thanks to @derrabus
- 10464: Fix some tests that were missed in #10431 thanks to @mpdude
- 10406: Test with a stable PHPUnit thanks to @derrabus
Code Style
- 10477: Remove underscore prefix on private variables thanks to @greg0ire
- 10465: Remove commented-out code sections thanks to @mpdude
Documentation
2.14.3
Release Notes for 2.14.3
2.14.3
- Total issues resolved: 0
- Total pull requests resolved: 5
- Total contributors: 5
Bugfixes
- 10630: Fixed xsd schema for support FQCN type thanks to @tmihalicka
- 10587: Handle null comparisons in
ManyToManyPersister
thanks to @MatTheCat
Documentation
- 10642: fix syntax array association on partial index documentation thanks to @yobrx
- 10620: fix typo in HydrationCompleteHandler doc thanks to @ecourtial
Test Suite
2.14.2
Release Notes for 2.14.2
2.14.x bugfix release (patch)
2.14.2
- Total issues resolved: 0
- Total pull requests resolved: 42
- Total contributors: 14
Bugfixes
- 10579: add
$isXsdValidationEnabled
to SimplifiedXmlDriver constructor thanks to @dmaicher - 10516: fix: use executeStatement in SchemaTool thanks to @simPod
- 10489: Fix forgotten exception throws thanks to @janedbal
- 10443: Replace hardcoded name with
Command::getName()
in output message fromUpdateCommand
thanks to @phansys - 10434: Avoid wasting Opcache memory with Paginator queries thanks to @mpdude
- 10420: Fix #9095 by re-applying #9096 thanks to @mpdude
- 8797: Avoid unnecessary information in query hints to improve query cache hit ratio thanks to @mpdude
- 8415: Fix association handling when there is a MappedSuperclass in the middle of an inheritance hierarchy thanks to @mpdude
Improvement
- 10444: Make Paginator-internal query cacheable in the query cache thanks to @mpdude
- 10411: Fill in missing subclasses when loading ClassMetadata thanks to @mpdude
Static Analysis
- 10604: Upgrade to Psalm 5.9.0 thanks to @greg0ire
- 10575: PHPStan 1.10.6, Psalm 5.8.0 thanks to @derrabus
- 10540: Mark SqlWalker methods as not deprecated thanks to @stof
- 10507: Baseline Psalm errors for DBAL 3.6 thanks to @derrabus
- 10490: Fix invalid phpdocs missing null thanks to @janedbal
- 10476: Hunt down invalid doc blocks thanks to @greg0ire
- 10468: Psalm 5.6.0, PHPStan 1.9.14 thanks to @derrabus
- 10445: Psalm 5.5.0 thanks to @derrabus
- 10418: Use correct type for FieldMapping#unique thanks to @greg0ire
- 10415: Remove ignore rules for fixed issues thanks to @greg0ire
- 10541: Bump dev tools thanks to @derrabus
Documentation
- 10589: Added missing ';' thanks to @e2palmes
- 10583: docs: Remove incorrect @SequenceGenerator info thanks to @Mika56
- 10539: More precisely document the performance impact of to-one associations towards inheritance hierarchies thanks to @mpdude
- 10534: [Documentation] consistency order for docblock in association mapping thanks to @MrYamous
- 10529: Correct use of PHP attribute thanks to @joshpme
- 10526: fix typo in faq.rst thanks to @alzee
- 10429: Review the documentation regarding entity inheritance thanks to @mpdude
- 10133: Clarify difference between transactional() methods of Connection and EntityManager thanks to @sbusch
CI
- 10563: Skip test instead of commenting it out thanks to @greg0ire
- 10480: Run tests with ext-pgsql thanks to @derrabus
Test Suite
- 10560: Skip test instead of commenting it out thanks to @derrabus
- 10546: Ignore the cache dir of PHPUnit 10 thanks to @derrabus
- 10544: Make data providers static thanks to @derrabus
- 10502: Remove calls to
assertObjectHasAttribute()
thanks to @derrabus - 10501: Remove calls to
withConsecutive()
thanks to @derrabus - 10498: Use recognized array key thanks to @greg0ire
- 10493: Make all data providers static thanks to @derrabus
- 10453: Add regression test for a to-many relationship on a base class & mapped superclass in the hierarchy thanks to @mpdude
- 10441: Use the right property thanks to @greg0ire
- 10433: Make sure tests from #7837 are actually run thanks to @mpdude
- 10424: Fixup GH8127 test case thanks to @mpdude
2.14.1
Release Notes for 2.14.1
2.14.x bugfix release (patch)
2.14.1
- Total issues resolved: 0
- Total pull requests resolved: 23
- Total contributors: 10
Bugfixes
- 10355: Include parameter types in hydration cache key generation thanks to @derrabus
- 10088: Ensure consistent original data with enums thanks to @HypeMC
- 10385: Fix initializing lazy objects and get rid of "Typed property must not be accessed before initialization" errors thanks to @nicolas-grekas
Documentation
- 10412: Adding link to Attributes reference thanks to @ThomasLandauer
- 10399: Fix DDL example for Mapped Superclasses thanks to @mpdude
- 10396: Document the meanings of 'inherited' and 'declared' in field mapping information thanks to @mpdude
- 10394: Write down what "transient" means thanks to @mpdude
- 10393: Place a warning about the uses of traits in the documentation thanks to @mpdude
- 10377: fix typo for missing a comma thanks to @fauVictor
- 10368: Docs: Removing
type: 'integer'
from mappings thanks to @ThomasLandauer - 10364: Docs: Moving attributes mapping to first position thanks to @ThomasLandauer
- 10363: Docs: Deleting duplicate mapping example thanks to @ThomasLandauer
- 10357: Shorter deprecation message thanks to @derrabus
- 10327: Improve and fix TypedFieldMapper docs thanks to @michnovka
- 10276: Added warning about query cache in relation to parameters thanks to @antman3351
CI
- 10404: Stop allowing phpbench's master branch thanks to @greg0ire
- 10328: Require dev version of phpbench thanks to @greg0ire
Improvement
- 10395: Sync variable name with class name thanks to @greg0ire
- 10342: Add Fully-Qualified class name in UnrecognizedField exception thanks to @Kern046