Releases: doctrine/orm
2.12.3
Release Notes for 2.12.3
2.12.x bugfix release (patch)
2.12.3
- Total issues resolved: 0
- Total pull requests resolved: 16
- Total contributors: 3
Static Analysis
- 9844: PHPStan 1.7.13 thanks to @derrabus
- 9843: Flip conditional extension of legacy AnnotationDriver class thanks to @derrabus
- 9842: PHP CodeSniffer 3.7 thanks to @derrabus
- 9818: Document missing possible types thanks to @greg0ire
- 9812: PHPStan 1.7.9 thanks to @derrabus
- 9802: Fix wrong types thanks to @greg0ire
- 9785: PHPStan 1.7.0 thanks to @derrabus
- 9779: Document callable as possible thanks to @greg0ire
- 9746: Better phpdoc tests thanks to @greg0ire
Test Suite
- 9841: Add missing property declaration thanks to @derrabus
- 9805: Remove empty test file thanks to @derrabus
CI,Test Suite
- 9840: Run tests on PHP 8.2 thanks to @derrabus
Documentation
- 9769: Add use statement thanks to @greg0ire
- 9749: Omit version number in README thanks to @greg0ire
CI
Bug
2.12.2
Release Notes for 2.12.2
2.12.x bugfix release (patch)
2.12.2
- Total issues resolved: 0
- Total pull requests resolved: 17
- Total contributors: 8
Improvement
Static Analysis
- 9718: Psalm 4.23, PHPStan 1.6.3 thanks to @derrabus
- 9708: Fix psalm annotation for Entity attribute thanks to @michnovka
- 9703: Update ClassMetadataInfo::table definition thanks to @pbourdet
- 9688: PHPStan 1.6.1 thanks to @derrabus
- 9682: PHPStan 1.6.0 thanks to @derrabus
- 9677: Document ORM drivers only really load ORM metadata thanks to @greg0ire
- 9676: Fix HydrationException::invalidDiscriminatorValue parameter type thanks to @franmomu
- 9675: Fix type on ClassMetadata discriminatorMap thanks to @franmomu
Test Suite
- 9707: Remove some ConnectionMock methods thanks to @morozov
- 9706: Remove unused OrmTestCase::getTestEntityManager() parameters thanks to @morozov
- 9692: Use ClassMetadata over ClassMetadataInfo in tests thanks to @greg0ire
- 9683: Remove dynamic property declarations thanks to @derrabus
Documentation
- 9699: Add missing use statement thanks to @ThomasLandauer
- 9698: use valid link syntax thanks to @ThomasLandauer
- 9691: Reference ClassMetadaInfo less thanks to @greg0ire
Bug
2.12.1
Release Notes for 2.12.1
2.12.x bugfix release (patch)
2.12.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug
2.12.0
Release Notes for 2.12.0
Feature release (minor)
2.12.0
- Total issues resolved: 1
- Total pull requests resolved: 52
- Total contributors: 8
Deprecation,Documentation
- 9661: Deprecate the doctrine binary thanks to @derrabus
Test Suite
- 9658: Fix IdentifierFlattenerEnumIdTest thanks to @michnovka
- 9649: Fix test file/class names thanks to @michnovka
- 9612: Skip tests requiring ObjectManagerAware thanks to @derrabus
- 9489: Avoid calling
merge()
thanks to @derrabus - 9479: Remove useless catches thanks to @derrabus
- 9472: Skip tests related to PersistentObject if that class is missing thanks to @derrabus
- 9451: Streamline cache creation in tests thanks to @derrabus
- 9423: Introduce
assertQueryCount()
thanks to @derrabus - 9418: Switch tests to the middleware logging system thanks to @derrabus
- 9404: Rework some tests that use hardcoded DBAL mocks thanks to @morozov
Bug
-
9657: Fix enum hydration when fetching partial results thanks to @michnovka
-
9580: Check if association already contains object thanks to @klammbueddel
-
9459: Check requirements for metadata drivers thanks to @derrabus
-
9656: Indicate support for
doctrine/persistence
3 thanks to @derrabus
Deprecation,Improvement
- 9646: Improve exception message thanks to @greg0ire
- 9511: Replace
TreeWalkerChainIterator
with a generator thanks to @derrabus - 9443: Introduce
DoctrineSetup
as a replacement forSetup
thanks to @derrabus
Deprecation
- 9641: Deprecate console helper thanks to @derrabus
- 9592: Deprecate or throw on namespace alias usage thanks to @greg0ire
- 9533: Deprecate custom
ObjectRepository
implementations thanks to @derrabus - 9532: Un-deprecate the current proxy mechanism thanks to @derrabus
- 9512: Document deprecation of
AbstractCollectionPersister
helpers thanks to @derrabus - 9475: Deprecate methods removed in 3.0 thanks to @derrabus
- 9397: Deprecate MultiGetRegion thanks to @derrabus
Static Analysis
- 9633: Leverage generic persistence event classes thanks to @derrabus
- 9621: Fix types on ResultSetMapping thanks to @derrabus
- 9603: Implement int-mask-of where appropriate thanks to @greg0ire
- 9566: Fix types on
walkLiteral()
andwalkLikeExpression()
thanks to @derrabus - 9565: Fix type on
SqlWalker::walkPathExpression()
thanks to @derrabus - 9553: Document tree walker class strings thanks to @derrabus
- 9552: Use literal types for
JOIN_TYPE_*
constants thanks to @derrabus - 9549: Leverage Lexer's Token type thanks to @derrabus
- 9541: Improve templating thanks to @greg0ire
- 9527: Document QueryComponent array shape thanks to @derrabus
- 9525: Fix more types on EntityRepository and FilterCollection thanks to @derrabus
- 9492: Fix types on QueryBuilder thanks to @derrabus
- 9474: Fix types on EntityRepository thanks to @derrabus
- 9401: Fix types on CacheLogger implementations thanks to @derrabus
New Feature
- 9629: Support Enum IDs and search by Enum fields thanks to @michnovka
- 9616: Support enums as default values thanks to @derrabus and @jgroc-de
- 9497: Add support for array of enums thanks to @dreadnip
- 9373: Support enum cases as parameters thanks to @derrabus
Improvement
- 9587: Implement colocated mapping driver thanks to @greg0ire
- 9578: Leverage
MemcachedAdapter::isSupported()
thanks to @derrabus - 9481: Rename
DoctrineSetup
toORMSetup
thanks to @derrabus - 9480: Modernize
strpos()
calls thanks to @derrabus - 9453: Support enums in findBy() calls thanks to @derrabus
- 9019: validate schema command: allow to debug missing schema updates list thanks to @COil
Deprecation,Static Analysis
- 9507: Fix types on caches thanks to @derrabus
Deprecation,Static Analysis,Test Suite
- 9466: Fix types on persisters thanks to @derrabus
Documentation
2.11.3
Release Notes for 2.11.3
2.11.x bugfix release (patch)
2.11.3
- Total issues resolved: 0
- Total pull requests resolved: 10
- Total contributors: 6
Bug
- 9663: ScalarColumnHydrator: prevent early-bail on falsy values thanks to @MrMitch
- 9623: explicitly use the non-deprecated ORMException thanks to @BenoitDuffez
- 9589: Fix type errors with XML export on PHP 8.1 thanks to @vrestihnat
Static Analysis
- 9648: Fix static analysis for Persistence 2.5 thanks to @derrabus
- 9607: PHPStan 1.5.0 thanks to @derrabus
- 9590: Ignore deprecation from Persistence thanks to @greg0ire
- 9577: Baseline Psalm errors caused by DBAL 3.3.3 thanks to @derrabus
Documentation
2.11.2
Release Notes for 2.11.2
2.11.x bugfix release (patch)
2.11.2
- Total issues resolved: 0
- Total pull requests resolved: 21
- Total contributors: 12
Bug
- 9574: Make sure MemcachedAdapter is supported before tring to use it thanks to @flack
- 9537: Make error message suggestion accurate thanks to @kiler129
- 9523: Bring
FilterCollection
to a "clean" state after hash computation thanks to @mpdude - 9457: PDO is not a required extension thanks to @derrabus
- 9452: Check requirements for metadata drivers thanks to @derrabus
Documentation
- 9569: Fixing
:doc:
link thanks to @ThomasLandauer - 9563: Remove reference to removed class thanks to @greg0ire
- 9555: Adding PHP attributes thanks to @ThomasLandauer
- 9513: Fix syntax typo in attributes reference in documentation thanks to @Einenlum
- 9487: Fix
#[DiscriminatorMap]
params thanks to @steveclifton - 9446: Remove trailing underscore thanks to @greg0ire
Static Analysis
- 9557: Parser: SimpleArithmeticExpression should return ArithmeticTerm thanks to @janbarasek
- 9546: Update baselines for Lexer 1.2.3 thanks to @derrabus
- 9504: Fix AbstractQuery::setParameter phpdoc thanks to @dmaicher
- 9493: Added "false" value to $columnPrefix type declaration. thanks to @DmytryHo
- 9491: PHPStan 1.4.6, Psalm 4.20.0 thanks to @derrabus
CI
- 9539: Drop minor version number thanks to @greg0ire
- 9470: Run Postgres 14 and MariaDB 10.6 in CI thanks to @derrabus
Test Suite
2.11.1
Release Notes for 2.11.1
2.11.x bugfix release (patch)
2.11.1
- Total issues resolved: 1
- Total pull requests resolved: 18
- Total contributors: 13
Test Suite
- 9442: Adapt test logic to PHP and SQLite II thanks to @greg0ire
- 9425: Ignore PHPUnit result cache everywhere thanks to @derrabus
- 9414: Move UnderscoreNamingStrategyTest to correct namespace thanks to @derrabus
CI
- 9440: Added php 8.1 to CI thanks to @sir-kain
Static Analysis
- 9438: Psalm 4.19.0, PHPStan 1.4.3 thanks to @derrabus
- 9415: Added class-string typehint on $targetEntity thanks to @hc-jworman
- 9398: Fix type on loadCacheEntry thanks to @derrabus
- 9393: Update baselines for DBAL 3.3 thanks to @derrabus
- 9385: PHPStan 1.4.0 thanks to @derrabus
Bug
- 9419: Fix support for PHP 8.1 enums in embedded classes thanks to @HypeMC
- 9410: Allow DiscriminatorColumn with length=0 thanks to @bcremer
- 9382: Expose enumType to DBAL to make native DB Enum possible thanks to @javer
- 9381: [GH-9380] Bugfix: Delegate ReflectionEnumProperty::getAttributes(). thanks to @beberlei and @ezkimo
- 9384: Allow using Enum from different namespace than Entity thanks to @javer
Documentation
- 9390: Introduce __unserialize behaviour in docs thanks to @SenseException
- 9386: Corrected ORM version and added missing dependency thanks to @mahakaal
- 9357: Add detach as of list cascade-all operations thanks to @andrew-demb
- 9311: Accessing private properties and methods from the same class is forbidden thanks to @olsavmic
2.11.0
Release Notes for 2.11.0
Feature release (minor)
2.11.0
- Total issues resolved: 2
- Total pull requests resolved: 35
- Total contributors: 11
Documentation
-
9328: Document return type of
getEntityState()
thanks to @derrabus -
9241: Support for nesting attributes with PHP 8.1 thanks to @beberlei
-
9174: AttributeOverride annotation is also an attribute but that is not reachable thanks to @brzuchal
-
9118: Generated/Virtual Columns: Insertable / Updateable thanks to @mehldau
Improvement
- 9356: Remove the
composer/package-versions-deprecated
package thanks to @derrabus - 9340: Use the readonly annotation thanks to @derrabus
- 9319: Document LockMode enums thanks to @derrabus
- 9316: Support readonly properties for read operations thanks to @derrabus
- 9312: Leverage generic ObjectManagerDecorator thanks to @derrabus
- 9275: Fix type errors in
AbstractQuery
andQueryBuilder
thanks to @derrabus - 9274: Fix type errors in AnnotationDriver thanks to @derrabus
- 9273: Fix docblocks on nullable EM properties thanks to @derrabus
- 9271: Fix return types of cache interfaces thanks to @derrabus
- 9203: Drop support for DBAL 3.1 thanks to @derrabus
- 9202: Add SchemaIgnoreClasses property thanks to @simPod
Bug
Deprecation
- 9327: Added runtime deprecation to
UnitOfWork::commit()
andclear()
thanks to @derrabus - 9309: [GH-9277] deprecate php driver thanks to @beberlei
- 9249: Deprecate
Setup::registerAutoloadDirectory()
thanks to @derrabus - 9211: Add deprecation hints to
orm:convert-mapping
command thanks to @derrabus - 9206: Add missing deprecations for YAML metadata mapping thanks to @derrabus
- 9074: Deprecate
ensureProductionSettings()
thanks to @derrabus - 9072: Deprecate
AbstractHydrator::hydrateRow()
thanks to @derrabus
New Feature
- 9326: Add support for custom types with requireSQLConversion and ResultSetMappingBuilder::generateSelectClause() thanks to @kimhemsoe
- 9304: Add support for PHP 8.1 enums. thanks to @beberlei
- 9149: Detect enums and use type string (PHP 8.1 only) thanks to @Nek-
- 9133: Adding a setup helper for attribute metadata config thanks to @judahnator
Deprecation,Improvement
- 9325: Use
EntityManagerInterface
in type declarations thanks to @derrabus - 9322: PSR-6 second level cache thanks to @derrabus
CI
- 9272: Regenerate Psalm baseline thanks to @derrabus
- 9267: Enable UnusedUse sniff again thanks to @derrabus
Bug,DQL
DQL,New Feature
DQL,Improvement
2.10.5
Release Notes for 2.10.5
2.10.5
-
Total issues resolved: 0
-
Total pull requests resolved: 21
-
Total contributors: 7
-
9360: Add errors caused by the lexer update to the baselines thanks to @derrabus
-
9344: Remove Psalm job for analyzing DBAL 2 thanks to @greg0ire
-
9330: Fix broken type declaration thanks to @derrabus
-
9295: Fix return type thanks to @derrabus
-
9294: Fix union type on QueryExpressionVisitorTest::testWalkComparison() thanks to @derrabus
-
9286: Whitelist composer plugins used by this repository thanks to @derrabus
-
9283: Allow symfony/cache 6 thanks to @derrabus
CI
- 9349: Update Psalm baseline for Persistence 2.3 thanks to @derrabus
- 9341: PHPStan 1.3.3, Psalm 4.18.1 thanks to @derrabus
- 9324: Enable some previously disabled PHPCS rules thanks to @derrabus
- 9317: Run PHP CodeSniffer on PHP 8.1 thanks to @derrabus
- 9315: Psalm 4.17.0 thanks to @derrabus
- 9314: Run static analysis with language level PHP 8.1 thanks to @derrabus
- 9303: Bump PHPStan & Psalm thanks to @derrabus
Bug
- 9339: Fix field mapping typing thanks to @greg0ire
- 9285: Fix XML export for
change-tracking-policy
thanks to @Fedik - 9244: Put actual value instead of index inside $originalEntityData thanks to @Feolius
Improvement
Documentation
2.10.4
What's Changed
Bugs fixed
- Fix making columns optional in indexes xml schema as they can be defined via fields now by @alexander-schranz in #9210
- Added psalm param to abstract addFilterConstraint by @KevinVanSonsbeek in #9229
- Fix SchemaValidator with abstract child class in discriminator map - Enforcing Abstract Entity in DiscriminatorMap is important for some operations by @olsavmic in #9262
- Make PrimaryReadReplicaConnection enforcement explicit by @beberlei in #9239
Maintenance
- Remove fallbacks for old
doctrine/annotations
versions by @derrabus in #9235 - PHPCS 3.6.2, Psalm 4.15.0 by @derrabus in #9247
Documentation
- [Documentation] Events Overview Table: Adding "Passed Argument" column by @ThomasLandauer in #9184
- Docs: consistency for FQCN, spacing, etc by @andrew-demb in #9232
- [docs] Fix wording for attributes=>parameters. by @beberlei in #9265
- Docs: use canonical order for phpdoc tags, add missed semicolon by @andrew-demb in #9190
New Contributors
- @KevinVanSonsbeek made their first contribution in #9229
- @andrew-demb made their first contribution in #9232
Full Changelog: 2.10.3...2.10.4