Update dependency doctrine/orm to v3
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
doctrine/orm (source) | require | major |
^2.13 -> ^3.0
|
Release Notes
doctrine/orm (doctrine/orm)
v3.0.0
3.0.0
Release Notes forAfter almost 8 years of work by many different contributors, we're incredibly proud to announce the release of Doctrine ORM 3.0.0!
Upgrade
We've written an upgrade guide, but the best way to prepare for the upgrade is to first upgrade to the latest 2.x version, and address any deprecation that is reported.
3.0.0
- Total issues resolved: 9
- Total pull requests resolved: 241
- Total contributors: 22
BC Break
- 11165: Allow XML validation to be disabled but keep it enabled by default. thanks to @jwage
- 11013: Enforce native type declarations thanks to @greg0ire
- 10998: Sever ties to common thanks to @greg0ire
- 10985: Remove partial syntax in DQL thanks to @greg0ire
- 10975: Change EntityPersister return type thanks to @greg0ire
- 10969: Use lazy ghosts unconditionally thanks to @greg0ire
- 10968: Reject ID collisions in identity map unconditionally thanks to @greg0ire
- 10964: Updated order of mapping attribute parameters thanks to @soltmar
- 10778: Disallow lifecycle callbacks on embedded classes thanks to @greg0ire
- 10777: Turn deprecation into an exception thanks to @greg0ire
- 10769: Remove Notify change tracking policy thanks to @greg0ire
- 10768: Enable XML validation unconditionally thanks to @greg0ire
- 10764: Cleanup bc layers thanks to @greg0ire
- 10741: Cleanup bc layers thanks to @greg0ire
- 10699: Narrow down parameter types for quote strategies thanks to @greg0ire
- 10667: Throw on invalid one to one thanks to @greg0ire
- 10520: Turn deprecation from #10470 into an exception in 3.0.x thanks to @mpdude
- 10509: Migrate the rest of the source code to PHP 8 syntax thanks to @greg0ire
- 10503: Migrate ClassMetadata to PHP 8 syntax thanks to @greg0ire
- 10500: Stop relying on underscores to indicate property visibility thanks to @greg0ire
- 10497: Migrate more classes to PHP 8 syntax thanks to @greg0ire
- 10496: Migrate database driver to PHP 8 syntax thanks to @greg0ire
- 10463: Make missing inheritance declaration a failure thanks to @mpdude
- 10448: Migrate ParserResult to PHP 8 syntax thanks to @greg0ire
- 10414: Remove concrete table inheritance thanks to @mpdude
- 10402: Migrate remaining exceptions to PHP 8 syntax thanks to @greg0ire
- 10380: Migrate exceptions to PHP 8 syntax thanks to @greg0ire
- 10375: Remove deprecated methods and classes thanks to @greg0ire
- 10347: Allow Lexer 3 thanks to @derrabus
- 10346: Modernize QueryExpressionVisitor thanks to @derrabus
-
10303: Remove
$entityAnnotationClasses
andgetReader()
thanks to @derrabus - 10272: Remove InExpression thanks to @derrabus
-
10196: Add
$lockMode
parameter toEntityManager::refresh()
thanks to @michnovka - 10192: Remove the Annotation interface thanks to @derrabus
- 10175: Remove DriverChain thanks to @derrabus
- 10172: Remove EntityManager::create() thanks to @derrabus
- 10151: Add native types to annotation classes thanks to @derrabus
- 10114: Remove SQL resultset mapping thanks to @greg0ire
- 10084: Migrate collections to PHP 8 syntax thanks to @greg0ire
- 10053: Add types to PersisterHelper thanks to @derrabus
- 10052: Add types to mapping builders thanks to @derrabus
- 9976: Add types to EntityListenerResolver thanks to @derrabus and @greg0ire
- 9962: Add types to ProxyFactory thanks to @derrabus and @greg0ire
- 9953: Resolve QueryBuilder deprecations thanks to @derrabus
- 9911: Show Expr::countDistinct() and Expr::concat() use variable-length argument lists thanks to @craigfrancis
- 9909: Show Expr::countDistinct() and Expr::concat() use variable-length argument lists thanks to @craigfrancis
- 9900: Migrate part of the tools namespace to PHP8 syntax thanks to @greg0ire
- 9852: Migrate Internal namespace to PHP8 thanks to @MarcBrillault and @greg0ire
- 9851: Migrate more code to PHP8 thanks to @greg0ire
- 9838: Stop allowing identity columns emulation thanks to @greg0ire
- 9828: migrate Tools/Schema* to php8.0 thanks to @MarcBrillault and @greg0ire
- 9798: Made setters parameters mandatory thanks to @derrabus
- 9755: Require new argument to joinColumnName() thanks to @greg0ire
- 9741: Make UnderscoreNamingStrategy number-aware only thanks to @greg0ire
- 9713: Remove last references to ClassMetadataInfo thanks to @greg0ire
- 9705: Remove support for Type::canRequireSQLConversion() thanks to @morozov
- 9665: Drop support for persistence 2 thanks to @derrabus
- 9662: Remove the doctrine binary thanks to @derrabus
- 9640: Remove console helper thanks to @derrabus
- 9631: Add native types to reflection property classes thanks to @derrabus
-
9614: Remove support for
ObjectManagerAware
thanks to @derrabus - 9597: Remove support for entity namespace aliases thanks to @greg0ire
- 9551: Split TreeWalker and SqlWalker thanks to @derrabus
- 9524: Add native types to SQLFilter thanks to @derrabus
-
9520: Remove
TreeWalkerChainIterator
thanks to @derrabus - 9515: Add native types to EntityRepository thanks to @derrabus
- 9508: Add native types to caches thanks to @derrabus
-
9502: Remove
Proxy
marker interface thanks to @derrabus - 9500: Remove quoting methods from ClassMetadata thanks to @derrabus
- 9498: Remove various deprecated methods and properties thanks to @derrabus
- 9490: Add native types to QueryBuilder thanks to @derrabus
- 9488: Remove ability to merge detached entities thanks to @derrabus
- 9485: Remove ability to flush the EM partially thanks to @derrabus
- 9471: Remove ability to clear the UoW partially thanks to @derrabus
- 9469: Add native types to persisters thanks to @derrabus
- 9456: Remove support for Doctrine Cache thanks to @derrabus
- 9450: Add more native types to entity manager implementations thanks to @derrabus
- 9447: Remove deprecated Setup class thanks to @derrabus
- 9428: Removing the deprecated Named (Native) Queries in Metadata/EntityRepository thanks to @sir-kain
- 9403: Remove MultiGetRegion and add native types to Region implementations thanks to @derrabus
- 9400: Add native types to CacheLogger implementations thanks to @derrabus
- 9396: Add native types to EntityHydrator thanks to @derrabus
- 9392: Remove old cache accessors and mutators from query classes thanks to @derrabus
-
9367: Remove
AbstractIdGenerator::generate()
and add native types to ID generators thanks to @derrabus - 9359: Add native types to console classes thanks to @derrabus
-
9358: Remove
Configuration::ensureProductionSettings()
thanks to @derrabus -
9353: Add native types to
AbstractHydrator
and child classes thanks to @derrabus - 9348: Remove support for Doctrine Cache in second level cache thanks to @derrabus
-
9308: [GH-9277] remove deprecated
PHPDriver
thanks to @beberlei - 9292: Add types to entity manager thanks to @derrabus
- 9278: Remove EntityManager::transactional() thanks to @derrabus
- 9259: Do not use AbstractPlatform::canEmulateSchemas() thanks to @morozov
-
9251: Remove
Setup::registerAutoloadDirectory()
thanks to @derrabus -
9227: Remove the
Version
class thanks to @derrabus - 9226: Remove code generators thanks to @derrabus
- 9076: Remove AbstractHydrator::hydrateRow() thanks to @derrabus
-
9070: Remove
Query::iterate()
thanks to @derrabus - 9045: Remove TABLE and UUID strategies thanks to @derrabus
- 8654: Removed EntityManagerInteface::copy() thanks to @smilesrg
- 8319: Fix variadic args in Expr thanks to @simPod
- 7199: Inherit from homonym exception in parent package thanks to @greg0ire
- 11001: Remove schema visitors thanks to @derrabus
- 10612: Extract embedded class mapping into its own DTO thanks to @greg0ire
- 10609: Extract discriminator column mapping into its own DTO thanks to @greg0ire
- 10607: Field mapping DTO thanks to @greg0ire
-
9329: Add types to
UnitOfWork
thanks to @derrabus - 10556: Add more native types to entity manager thanks to @derrabus
- 10243: Migrate persisters to PHP 8 syntax thanks to @greg0ire
- 10214: Migrate function nodes to PHP 8 syntax thanks to @greg0ire
-
9978: Add types to
Node::dispatch()
thanks to @derrabus and @greg0ire - 9923: Add native types to QuoteStrategy classes thanks to @derrabus
- 9620: Add native types to ResultSetMapping thanks to @derrabus
- 9950: Fix DBAL 4 compatibility thanks to @derrabus
- 10379: Remove ClassMetadataInfo thanks to @greg0ire
- 10378: Migrate classes with the fewest changes thanks to @greg0ire
- 10374: Migrate classes with the fewest changes to PHP 8 thanks to @greg0ire
- 10309: Drop doctrine/lexer 1 thanks to @greg0ire
- 10227: Migrate Expr and Lexer to PHP 8 syntax thanks to @greg0ire
- 10219: Migrate AST namespace to PHP 8 syntax thanks to @greg0ire
- 10177: Purge annotations thanks to @greg0ire
- 10113: Migrate to attributes thanks to @greg0ire
- 9835: Migrate Configuration to PHP 8 syntax thanks to @greg0ire
- 9776: Migrate to PHP 8: AbstractQuery and child classes thanks to @greg0ire
- 9085: Refactor ORMException into an interface thanks to @greg0ire
- 9758: Use native type declaration for naming strategies thanks to @greg0ire
- 9462: Remove PHP 7 code thanks to @derrabus
Improvement
- 11205: Run Rector on the source code thanks to @greg0ire
- 11085: XmlDriver: remove dead code thanks to @staabm
- 10986: Drop support for unserializing old serialization formats thanks to @greg0ire
- 10984: Allow VarExporter 7 thanks to @derrabus
- 10843: Declare compatibility with DBAL 4 thanks to @derrabus
- 10805: Validate phpunit.xml against PHPUnit 10 schema thanks to @greg0ire
- 10730: Migrate to the object API of Join{Column,Table}Mapping thanks to @greg0ire
- 10729: Make the join table name and join column name mandatory thanks to @greg0ire
- 10723: Migrate to the object API of AssociationMapping thanks to @greg0ire
- 10698: Move joinColumnFieldNames down the class hierarchy thanks to @greg0ire
- 10696: Add templating for getOwningSide thanks to @greg0ire
- 10688: Introduce method to get to the owning side thanks to @greg0ire
- 10682: Make sure unneeded fields are not present thanks to @greg0ire
- 10681: Rework association mapping hierarchy thanks to @greg0ire
- 10650: Improve named constructors' phpdoc thanks to @greg0ire
- 10649: Use valid relationships thanks to @greg0ire
- 10646: Migrate basic entity persister to the object API of association mapping thanks to @greg0ire
- 10641: Move $(sourceToTarget|targetToSource)KeyColumns down thanks to @greg0ire
- 10637: Move properties down thanks to @greg0ire
- 10636: Move joinTableColumns down thanks to @greg0ire
- 10629: Migrate to embedded class mapping object API thanks to @greg0ire
- 10628: Migrate to DiscriminatorColumnMapping's object API thanks to @greg0ire
- 10617: Use Rector to migrate to the object API of FieldMapping thanks to @greg0ire
- 10613: Extract AssociationMapping in its own DTO thanks to @greg0ire
- 10542: Stabilize DBAL version constraint thanks to @derrabus
-
10352: Leverage new
ArrayParameterType
constants thanks to @derrabus - 10332: Drop doctrine/lexer 2 thanks to @greg0ire
- 10326: Cleanup code from PR10313 from 2.14.x thanks to @michnovka
- 10323: Migrate Doctrine\ORM\Internal\CommitOrder to PHP 8.1 thanks to @derrabus
- 10305: Clean-up code after PR10288 merge thanks to @michnovka
-
10286: Remove
setAccessible()
calls thanks to @derrabus -
10285: Modernize
Closure::fromCallable()
calls thanks to @derrabus - 10259: Drop support for Symfony 4 thanks to @derrabus
- 10210: Migrate Cache namespace to php 8 thanks to @greg0ire
- 10203: Purge annotations from /lib thanks to @greg0ire
- 10185: Remove last remnants of the YAML driver thanks to @greg0ire
- 10173: Bump DBAL to 3.5 and remove BC hacks thanks to @derrabus
- 9968: Stabilize the DBAL dependency thanks to @derrabus
- 9957: Drop unmaintained Symfony versions thanks to @derrabus
- 9956: Flag properties as readonly if possible thanks to @derrabus and @greg0ire
- 9954: Remove obsolete PHP version checks thanks to @derrabus
- 9925: Require PHP 8.1 thanks to @derrabus
- 9885: Address API removals from upstream thanks to @greg0ire
-
9535: Leverage the
Stringable
interface thanks to @derrabus -
9413: Remove check for
getSQLResultCasing()
thanks to @derrabus - 9293: Enable PHPCS rules for PHP 8.0 thanks to @derrabus
- 9290: [RFC] Drop support for PHP 7.4 thanks to @derrabus
- 9104: Changed EntityRepository count method $criteria parameter to optional thanks to @soltmar
- 9069: Remove support for DBAL 2 thanks to @derrabus
- 7195: Move orm exception up thanks to @greg0ire
- 7825: Improved support for Mapped Superclasses thanks to @andrews05
- 11147: Remove irrelevant PHP version checks thanks to @greg0ire
- 10506: Migrate Parser to PHP 8 thanks to @greg0ire
- 10440: Migrate entity manager to PHP 8 syntax thanks to @greg0ire
- 11045: Dynamically resolve AUTO to SEQUENCE or IDENTITY thanks to @greg0ire
- 10635: Introduce and leverage more convenience methods thanks to @greg0ire
- 10633: Check only owning relationships thanks to @greg0ire
- 6673: Add support for updatable columns thanks to @lcobucci
- 6671: Add support for insertable columns thanks to @lcobucci
- 9094: Bump required PHP version to 7.4 thanks to @derrabus
- 9634: Remove deprecated handling of custom ObjectRepository implementations thanks to @derrabus
- 9395: Stabilize DBAL dependency thanks to @derrabus
- 10102: Address method rename thanks to @greg0ire
- 9829: Address removals of doctrine-dbal thanks to @MarcBrillault
- 9815: Address deprecation of supportsForeignKeyConstraints() thanks to @greg0ire
- 9738: Address some deprecations thanks to @greg0ire
Bugfixes
- 11071: Remove wrong assertion thanks to @greg0ire
- 10995: Fix array parameters with DBAL 4 thanks to @derrabus
- 10728: Declare options property thanks to @greg0ire
- 10354: Fix build for DBAL 4 thanks to @derrabus
-
9924: Adjust casing of
SQLitePlatform
for DBAL 4 thanks to @derrabus - 10634: Remove wrong comparison thanks to @greg0ire
Static Analysis
- 11012: Use native return type declarations in Debug class thanks to @greg0ire
- 10701: Introduce convenience methods to narrow types thanks to @greg0ire
- 10700: fix wrong phpdoc thanks to @greg0ire
- 10697: Narrow down ClassMetadata::associationMappings type thanks to @greg0ire
- 10687: Make indexBy/orderBy easier to understand for SA thanks to @greg0ire
- 10367: Migrate files with the least changes to PHP 8 thanks to @greg0ire
- 9974: Update Psalm config thanks to @derrabus
- 9778: Precise phpdoc of getRootEntities thanks to @VincentLanglet
- 9742: Run static analysis with DBAL 4@dev thanks to @morozov
- 9613: Document that entity names have to be FQCNs now thanks to @derrabus
Documentation
- 10954: docs: remove reference to removed yaml configuration option thanks to @dannyvankooten
- 10853: Remove outdated comment thanks to @greg0ire
- 10782: Remove missed note about deprecated drivers thanks to @andersonamuller
- 10596: Remove contradictory comment of ORMException thanks to @SenseException
- 9963: Flag QueryType as internal thanks to @derrabus
- 7073: README.md typo? thanks to @Dadibom
-
10793: Remove remaining references to the
merge()
operation thanks to @mpdude and @beberlei - 7196: Document exception-splitting-related BC-breaks thanks to @greg0ire
Test Suite
- 10910: Remove PHPUnit polyfills thanks to @greg0ire
- 10644: Become strict about notices and warnings thanks to @greg0ire
-
10631: Remove obsolete
RequiresPhp
attributes thanks to @derrabus - 10567: Forbid PHPUnit annotations thanks to @derrabus
- 10559: Convert PHPUnit annotations to attributes thanks to @chr-hertel
- 10492: PHPUnit 10 thanks to @derrabus
- 9959: Use intersection types in tests thanks to @derrabus and @greg0ire
-
9869: Fix broken mocks due to removal of
Driver::getSchemaManager()
thanks to @derrabus - 9832: Run test with DBAL 4 thanks to @greg0ire
- 9814: Remove MockBuilderCompatibilityTools thanks to @derrabus
- 9728: Test MySQL DDL using explicit table options thanks to @morozov
- 9724: Remove ConnectionMock thanks to @morozov
- 9722: Remove DriverResultMock thanks to @morozov
- 9717: Remove ConnectionMock::delete() thanks to @morozov
- 9716: Remove DatabasePlatformMock thanks to @morozov
- 9715: Remove some mock classes thanks to @morozov
- 9709: Remove non-API DriverConnectionMock methods thanks to @morozov
- 9422: Remove DBAL 2 compatible SQL logging thanks to @derrabus
- 9402: Make test types compatible with Doctrine DBAL 4.0.x-dev thanks to @morozov
- 9291: Replace mocks with middlewares thanks to @derrabus
- 9800: Migrate tests to PHP8 syntax thanks to @greg0ire
CI
- 9727: Run builds with DBAL 4.0.x-dev thanks to @morozov
- 11011: Prepare CI for stable DBAL 4 thanks to @derrabus
- 10971: Restore job with --prefer-lowest thanks to @greg0ire
- 9734: Build with DBAL 4@dev on SQLite thanks to @morozov
- 9740: Build with DBAL 4@dev on PostgreSQL thanks to @morozov
- 9735: Build with DBAL 4@dev on MySQL and MariaDB thanks to @morozov
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Renovate Bot