Releases: doctrine/orm
Releases · doctrine/orm
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
Static Analysis
2.14.0
Release Notes for 2.14.0
2.14.0
- Total issues resolved: 0
- Total pull requests resolved: 43
- Total contributors: 10
New Features
- 10313: Add TypedFieldMapper for automatic mapping of typed PHP fields to DBAL types thanks to @michnovka
- 10288: Allow enum discriminator columns thanks to @michnovka
- 10187: Leverage LazyGhostTrait when possible thanks to @nicolas-grekas
- 10040: Add lockMode to EntityManager#refresh() thanks to @michnovka
Improvements
- 10321: Drop forceful loading of annotations thanks to @greg0ire
- 10320: Support doctrine/annotations 2 thanks to @derrabus
- 10301: Allow lexer 2 thanks to @greg0ire
- 10233: update help for RunDqlCommand thanks to @dmaicher
- 10206: Use a more accurate name for $annotationName thanks to @greg0ire
- 10123: Allow doctrine/event-manager 2 thanks to @derrabus
- 10122: Automap events in AttachEntityListenersListener thanks to @HypeMC
- 10070: Add support for doctrine/collection 2 thanks to @greg0ire
- 10153: Address dbal deprecations thanks to @greg0ire
- 10121: Address deprecation of Table::changeColumn() thanks to @greg0ire
- 10116: Address deprecations from DBAL thanks to @greg0ire
- 10105: Backport DBAL-related fixes thanks to @greg0ire
- 10162: Use error style for notifications thanks to @greg0ire
- 10256: Make use statements redundant thanks to @greg0ire
Deprecations
- 10212: Add a constructor to
CacheKey
thanks to @derrabus - 10204: Rename internal methods thanks to @greg0ire
- 10178: Deprecate the
Annotation
interface thanks to @derrabus - 10098: Deprecate annotation driver thanks to @greg0ire
- 10086: Create dedicated event argument classes thanks to @franmomu
- 10045: Deprecate
Doctrine\ORM\Proxy\Proxy
and decouple a bit more fromDoctrine\Common\Proxy
thanks to @nicolas-grekas - 9961: Deprecate
EntityManager::create()
thanks to @derrabus - 10267: Add
$not
constructor parameter to AST classes thanks to @derrabus
Bugfixes
Static Analysis
- 10315: Document stdClass structures used by
CommitOrderCalculator
thanks to @derrabus - 10242: Solve some PHPStan baseline errors thanks to @VincentLanglet
- 10238: Use more precise phpdoc thanks to @VincentLanglet
- 10231: Make the code easier to statically analyse thanks to @greg0ire
- 10224: Document property as non-nullable thanks to @greg0ire
- 10218: Ignore PropertyNotSetInConstructor thanks to @greg0ire
- 10202: Allow "Expr\Func" as condition in join in PHPDoc thanks to @willemverspyck
- 10199: refactor: use list type in SchemaTool thanks to @simPod
- 10145: Fix type doc blocks in annotation classes thanks to @derrabus
- 10089: Document properties as possibly null thanks to @greg0ire
- 10002: Make paginator covariant thanks to @VincentLanglet
- 10302: Add assertions about non nullability thanks to @greg0ire
Documentation
- 10205: Avoid references to annotations thanks to @greg0ire
- 10161: Make the mapping driver deprecations more obvious thanks to @greg0ire
Test Suite
2.13.5
Release Notes for 2.13.5
2.13.5
- Total issues resolved: 0
- Total pull requests resolved: 17
- Total contributors: 5
Bugfixes
- 10311: add apcu enabled check if apcu extension loaded (#10310) thanks to @aleksejs1
- 10277: Fix changeset computation for enum arrays thanks to @michnovka
- 10274: Fix enum IDs in association mappings thanks to @michnovka
Static Analysis
- 10318: PHPStan 1.9.4 thanks to @derrabus
- 10317: Psalm 5.3.0 thanks to @derrabus
- 10298: PHPStan 1.9.3 thanks to @derrabus
- 10291: Psalm 5.2.0 thanks to @derrabus
- 10257: Leverage Lexer's Token type (follow up) thanks to @greg0ire
- 10248: Psalm 5 fixes thanks to @greg0ire
- 10247: Fix types for Paginator thanks to @derrabus
- 10261: Bump Psalm to 5.0.0 and fix errors for Symfony 6.2 thanks to @derrabus
- 10264: Upgrade to Psalm 5.1.0 thanks to @greg0ire
- 10252: Upgrade to Psalm v5 thanks to @greg0ire
Code Style
- 10295: Bump coding standard to v11 thanks to @derrabus
Test Suite
- 10294: Rename
AbstractCommandTest
thanks to @derrabus
CI
- 10287: Run tools on PHP 8.2 thanks to @derrabus
Documentation
- 10271: Correct spelling errors thanks to @kalifg
2.13.4
Release Notes for 2.13.4
2.13.4
- Total issues resolved: 0
- Total pull requests resolved: 23
- Total contributors: 8
Bugfixes
- 10110: Fix deprecated trigger help comment thanks to @davidromani
- 10074: Fix change set computation with enums thanks to @HypeMC
Static Analysis
- 10221: Reverse-engineer actual type from code thanks to @greg0ire
- 10213: Psalm 4.30.0, PHPStan 1.9.2 thanks to @derrabus
- 10200: PHPStan 1.9.0 thanks to @derrabus
- 10182: PHPStan 1.8.11 thanks to @derrabus
- 10163: Fix build with DBAL 3.5 thanks to @derrabus
- 10144: Fix FieldMapping for generated key thanks to @ondrejmirtes
- 10128: Psalm 4.29 thanks to @derrabus
- 10115: PHPStan 1.8.8, Psalm 4.28.0 thanks to @derrabus
Documentation
- 10179: Remove reference to deprecated DriverChain from docs thanks to @derrabus
- 10176: Migrate more references to annotations thanks to @greg0ire
- 10174: Adapt use statements to the code thanks to @greg0ire
- 10160: Adjust comments thanks to @greg0ire
- 10157: Migrate more documentation towards attributes thanks to @greg0ire
- 10126: Modernize documentation code thanks to @greg0ire
- 10120: Fix grammer in working-with-objects thanks to @jonnyeom
- 10104: Add isMemberOf and isInstanceOf to Expr helper list thanks to @ker0x
Test Suite
- 10239: Adjust expectation thanks to @greg0ire
- 10229: Widen parameter type thanks to @greg0ire
CI
- 10180: Bump CI to PHP 8.2 and latest database versions thanks to @derrabus
- 10136: Stop triggering static analysis workflows on tests thanks to @greg0ire
Improvement
- 10154: Do not export phpstan stuff thanks to @simPod
2.13.3
Release Notes for 2.13.3
2.13.3
- Total issues resolved: 0
- Total pull requests resolved: 7
- Total contributors: 3
CI
- 10106: Bump CI workflows thanks to @greg0ire
Test Suite
- 10101: Assert that serialization leaves PersistentCollection usable thanks to @greg0ire
- 10100: Forward compat attributes thanks to @greg0ire
Documentation
- 10099: Fix attribute reference thanks to @greg0ire
- 10094: Fix heading levels for the embeddable tutorial thanks to @stof
Static Analysis
- 10072: Remove return type override thanks to @greg0ire
Bug,Regression
2.13.2
Release Notes for 2.13.2
2.13.x bugfix release (patch)
2.13.2
- Total issues resolved: 0
- Total pull requests resolved: 11
- Total contributors: 8
Bugfixes
- 10041: Fix ArrayHydration of enums thanks to @michnovka
Static Analysis
- 10054: Mark ClassMetadataInfo::sequenceGeneratorDefinition as nullable thanks to @greg0ire
- 10033: PHPStan 1.8.5, Psalm 4.27.0 thanks to @derrabus
- 9983: Add phpdoc for ClassMetadataInfo::discriminatorColumn property thanks to @VincentLanglet
Documentation
- 10028: More strange break lines in inheritance-mapping.rst thanks to @carlosbuenosvinos
- 9994: Update query-builder.rst thanks to @achasinh
- 9848: Improve orphan removal documentation - recommend using cascade=persist thanks to @olsavmic
Internal
2.13.1
Release Notes for 2.13.1
2.13.1
- Total issues resolved: 0
- Total pull requests resolved: 5
- Total contributors: 2
Deprecation
Documentation
- 9979: Update documentation to not use deprecated method thanks to @franmomu
- 9971: Update branch metadata thanks to @derrabus
Static Analysis
Test Suite
2.13.0
Release Notes for 2.13.0
Feature release (minor)
2.13.0
- Total issues resolved: 0
- Total pull requests resolved: 37
- Total contributors: 10
Improvement
- 9969: Address DBAL 3.4 deprecations thanks to @derrabus
- 9915: Make EntityManager
@final
and its constructor public thanks to @nicolas-grekas - 9903: schema tool: remove useless text from --dump-sql output thanks to @glaszig
- 9839: Use proper API for introspection of tables thanks to @morozov
- 9780: Kill call_user_func(_array) thanks to @derrabus
- 9737: Improve compatibility with DBAL 4 for MySQL, MariaDB and PostgreSQL thanks to @morozov
- 9730: Forward compatibility with DBAL 4 thanks to @morozov
- 6728: Validate XML mapping against XSD file thanks to @greg0ire
Static Analysis
- 9965: Improve phpdoc for ClassMetadataInfo thanks to @VincentLanglet
- 9826: Improve phpdoc for Configuration thanks to @greg0ire
- 9794: Add type for AssociationMapping thanks to @VincentLanglet
- 9756: Document types as they are passed thanks to @greg0ire
- 9751: Update Psalm baseline thanks to @derrabus
Deprecation
- 9945: Deprecate QueryBuilder APIs exposing its internal state thanks to @derrabus
- 9906: Deprecate
LifecycleEventArgs
thanks to @franmomu - 9876: Change parent classes in some events thanks to @franmomu
- 9833: Deprecate reliance on sequence-emulated identity columns thanks to @greg0ire
- 9809: Deprecate passing null to Query::setFirstResult() thanks to @greg0ire
- 9791: Deprecate calling setters without arguments thanks to @derrabus
- 9786: Prepare split of output walkers and tree walkers thanks to @derrabus
- 9784: Deprecate passing null to Query::setDQL() thanks to @greg0ire
- 9765: Deprecate omitting the alias in QueryBuilder::update() and delete() thanks to @Hanmac
- 9747: Deprecate omitting second argument to joinColumnName() thanks to @greg0ire
- 9704: Reference ClassMetadataInfo less and less thanks to @greg0ire
Test Suite
- 9938: Stop passing event manager to constructor thanks to @greg0ire
- 9895: Avoid SQL assertions thanks to @greg0ire
- 9808: Remove calls to deprecated
MockBuilder::setMethods()
thanks to @derrabus - 9806: Rename Abstract*Test to *TestCase thanks to @derrabus
- 9796: Add missing import thanks to @derrabus
- 9790: MockTreeWalker should be an SqlWalker thanks to @derrabus
- 9789: Move duplicate fixture into dedicated file thanks to @derrabus
New Feature
- 9936: Support native enum hydration when using
NEW
operator thanks to @romm - 9655: Allow setting column options like
charset
andcollation
onJoinTable
,JoinColumn
andInverseJoinColumn
thanks to @ruudk
Improvement,Static Analysis
-
9932: Add helper function
TreeWalkerAdapter::getMetadataForDqlAlias()
thanks to @derrabus -
9837: Address deprecation of getDatabasePlatform() thanks to @greg0ire
-
9801: Widen types thanks to @greg0ire
Documentation
2.12.4
Release Notes for 2.12.4
2.12.x bugfix release (patch)
2.12.4
- Total issues resolved: 0
- Total pull requests resolved: 18
- Total contributors: 7
Test Suite
- 9966: fix: class normalisation test thanks to @Tofandel
- 9930: Simplify
LanguageRecognitionTest
thanks to @derrabus - 9914: Avoid supportsCreateDropDatabase() thanks to @greg0ire
- 9907: Add tests for SQL output feature thanks to @greg0ire
- 9892: Address array object type deprecation thanks to @greg0ire
- 9874: Migrate more usages of SchemaTool::createSchema() thanks to @greg0ire
- 9823: Backport fixes from upstream branch thanks to @greg0ire
Static Analysis
- 9964: Psalm 4.26.0 & build failures with DBAL 3.4.0 thanks to @derrabus
- 9941: Psalm 4.25.0, PHPStan 1.8.2 thanks to @derrabus
- 9922: Widen types for DiscriminatorMap thanks to @derrabus
- 9887: PHPStan 1.8.0 thanks to @derrabus
- 9865: Psalm 4.24.0, PHPStan 1.7.15 thanks to @derrabus
- 9858: PHP CodeSniffer 3.7.1, PHPStan 1.7.14 thanks to @derrabus
Documentation
- 9943: Update branch info in README and .doctrine-project.json thanks to @derrabus
- 9880: Fix typo in AbstractQuery thanks to @CarlSchwan
- 9871: preUpdate: Add restriction that changed field needs to be in computed… thanks to @ThomasLandauer