Releases: doctrine/orm
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
2.10.3
Release Notes for 2.10.3
2.10.x bugfix release (patch)
2.10.3
- Total issues resolved: 0
- Total pull requests resolved: 20
- Total contributors: 13
Documentation
- 9218: Fix typo assumptio--> assumption thanks to @Florian-Varrin
- 9166: Remove reverted bc break thanks to @alexander-schranz
- 9161: Adding Attributes code block thanks to @ThomasLandauer
- 9159: Merging Lifecycle Callbacks code samples for PHP + XML + YAML thanks to @ThomasLandauer
- 9158: Removing paragraph on
const
s thanks to @ThomasLandauer - 9156: Adding link to Embeddables thanks to @ThomasLandauer
- 9154: Fixing more links thanks to @ThomasLandauer
- 9152: Add doctrine/dbal to project composer.json thanks to @chasen
- 9151: Fixing links in overview table thanks to @ThomasLandauer
- 9150: Fix markup for variable names thanks to @pwaring
- 9143: Document BC break thanks to @greg0ire
- 9131: Overview table for events: Jump links thanks to @ThomasLandauer
CI
- 9212: Suppress Psalm's ReservedWord errors thanks to @derrabus
- 9195: Use
equal to
instead ofequal of
inassertSqlGeneration()
thanks to @simPod - 9204: Psalm 4.13.1, PHPStan 1.2.0 thanks to @derrabus
- 9146: Remove old use statements thanks to @chapterjason
Bug
- 9198: Add a psalm type for field mapping thanks to @laryjulien
- 9147: return 0 when there's no metadata to process thanks to @wickedOne
- 9153: Infer type from field instead of column thanks to @armenio
Improvement
2.10.2
Release Notes for 2.10.2
2.10.x bugfix release (patch)
2.10.2
- Total issues resolved: 0
- Total pull requests resolved: 17
- Total contributors: 11
Bug
- 9098: Honor INDEX BY construct in Query::toIterable thanks to @ajgarlag
- 9096: Fix SchemaValidator with abstract child class in discriminator map thanks to @BenMorel
Improvement
CI
- 9114: Directly reference upstream CS workflow thanks to @greg0ire
- 9139: Upgrade workflows to 1.1.1 thanks to @greg0ire
- 9126: Explicitly pass secrets thanks to @greg0ire
- 9115: PHP CodeSniffer 3.6.1 thanks to @derrabus
Documentation
- 9138: Fix the upgrade guide for 2.8 changes thanks to @stof
- 9128: Explaining the two major ways to register an event v2 thanks to @ThomasLandauer
- 9113: Fix typo & minor grammar issues in dql-custom-walkers.rst thanks to @PaulCapron
- 9107: Remove the twitter #doctrine2 hashtag refference thanks to @BackEndTea
- 9102: Explaining the two major ways to register an event thanks to @ThomasLandauer
- 9097: Explaining the two major ways to register an event thanks to @ThomasLandauer
- 9091: Add "@method" annotation for
wrapInTransaction()
method atEntityManagerInterface
thanks to @phansys - 9039: Overview table for events thanks to @ThomasLandauer
BC-break revert
2.10.1
Release Notes for 2.10.1
2.10.x bugfix release (patch)
2.10.1
- Total issues resolved: 1
- Total pull requests resolved: 3
- Total contributors: 3
Bug
- 9090: Add integer cast in setFirstResult methods of Query and QueryBuilder thanks to @knallcharge
- 9089: Return value of Doctrine\ORM\Query::getFirstResult() must be of the type int or null, string returned thanks to @knallcharge
- 9079: Add integer cast in setMaxResults methods of Query and QueryBuilder thanks to @mitelg
Documentation
2.10.0
Release Notes for 2.10.0
2.10.0
- Total issues resolved: 4
- Total pull requests resolved: 56
- Total contributors: 9
CI
- 9057: Add PHP 8.1 to CI thanks to @derrabus
- 8874: Build with DBAL 3 thanks to @greg0ire
Improvement
- 9056: Remove calls to
ForeignKeyConstraint::getColumns()
thanks to @derrabus - 8996: Support for PSR-6 result caches thanks to @derrabus
- 8962: Stop swallowing exceptions thanks to @greg0ire
- 8954: Fix references to deprecated
DBALException
thanks to @derrabus - 8953: Don't call deprecated
getSchemaManager()
thanks to @derrabus - 8952: Drop more usages of SimpleAnnotationReader thanks to @greg0ire
- 8949: Make mock layer compatible with DBAL 3 thanks to @derrabus
- 8946: Support for DBAL 3's platform classes thanks to @derrabus
- 8945: Document possibly-null member variables thanks to @greg0ire
- 8944: Remove references to
Type::DATETIME
thanks to @derrabus - 8941: Remove calls to
fixSchemaElementName()
thanks to @derrabus - 8939: Remove calls to
Driver::getName()
thanks to @derrabus - 8938: Bump Psalm to 4.9.3 thanks to @derrabus
- 8935: Remove calls to deprecated Connection methods thanks to @derrabus
- 8928: Add types to
EM::wrapInTransaction()
thanks to @simPod - 8915: Address Type deprecation messages thanks to @basseta
- 8889: doctrine/dbal v3 - Make sure that values passed to are not null thanks to @scyzoryck
- 8870: Remove calls to prefersSequences() thanks to @derrabus
- 8836: Make implicit type casts explicit thanks to @greg0ire
- 8794: Fix deprecated DBAL calls thanks to @derrabus
- 8793: Backport slamdunk's work thanks to @greg0ire
- 8792: Backport malukenho's work thanks to @greg0ire
- 8692: Split the ORMException class thanks to @greg0ire
Bug
- 9050: fix: prevent TypeError in QueryBuilder joins thanks to @dunglas
- 8943: Add missing EntityManagerInterface argument to callable that is being passed to
EM::wrapInTransaction()
thanks to @simPod
Deprecation
- 9046: Deprecate isIdGeneratorTable and isIdentifierUuid thanks to @derrabus
- 8820: [GH-8818] Deprecate entity namespace short aliases. thanks to @beberlei
- 9004: Use PSR-6 for accessing the query cache thanks to @derrabus
- 9002: Switch cache configuration to PSR-6 thanks to @derrabus
- 8984: Remove unnecessary
method_exists()
checks thanks to @derrabus - 8964: DBAL 3 thanks to @derrabus
- 8957: Only wire ConnectionHelper if it's available thanks to @derrabus
- 8950: PHPStan 0.12.96 thanks to @derrabus
- 8948: Remove ImportCommand from console thanks to @derrabus
- 8947: Remove UUID generator strategy from fixtures thanks to @derrabus
- 8942: Remove remaining call to
prefersSequences()
thanks to @derrabus - 8940: Remove calls to
EchoSQLLogger
thanks to @derrabus - 8937: Don't pass
false
as lock mode toappendLockHint()
thanks to @derrabus - 8936: Reset Psalm baseline thanks to @derrabus
- 8934: Remove calls to
AbstractPlatform::getSQLResultCasing()
thanks to @derrabus - 8932: Drop support for generating json array fields thanks to @greg0ire
- 8898: Throw exception NotSupported Exception for
UuidGenerator
with doctr… thanks to @scyzoryck - 8887: Move
getSQLResultCasing
code into ORM from DBAL thanks to @beberlei - 8862: Change $this->assert* to self::assert* in unit tests thanks to @carnage
- 8841: Enable strict mode thanks to @greg0ire and @beberlei
- 8780: Fix usages of deprecated DBAL constants thanks to @derrabus
- 8419: Introduce
EntityManagerInterface#wrapInTransaction()
thanks to @simPod - 8961: Deprecate / remove TABLE id generator strategy thanks to @greg0ire
Documentation
New Feature
- 8919: feat(ScalarColumnHydrator): added ScalarColumnHydrator to get flat array results from query for single column thanks to @bhushan
Backporting
- 8859: Drop tools/sandbox thanks to @greg0ire
- 8844: Ditch SimpleAnnotationReader thanks to @greg0ire
- 8837: Replace spl_object_hash() with spl_object_id() thanks to @greg0ire
BC Break
2.9.6
Release Notes for 2.9.6
2.9.x bugfix release (patch)
2.9.6
- Total issues resolved: 0
- Total pull requests resolved: 22
- Total contributors: 12
CI
- 9058: Run PHP 8.1 CI with stable dependencies thanks to @derrabus
- 9006: Add PHP 8.1 to CI thanks to @derrabus
- 8979: Bump PHPStan and Psalm thanks to @derrabus
Bug
- 9053: Fix locking non-existing entity thanks to @sztyup
- 9028: Don't presume one-to-one lookup returned an entity thanks to @gregtyler
- 9024: Fix docblock types for some nullable properties thanks to @phansys
- 9010: Fix ignoring custom types for PersistentCollection matching() thanks to @sztyup
- 9001: Remove Proxy from EntityManagerInterface contract thanks to @derrabus
- 9000: Fix class casing and avoid name collisions thanks to @derrabus
- 8959: Fix
getEntityChangeSet
return typehint thanks to @norkunas - 8903: SchemaValidator: Fix mapped superclass missing in discriminator map thanks to @olsavmic
Improvement
- 9048: Duplicate testTwoIterateHydrations thanks to @derrabus
- 9017: Fix some typehints in QueryBuilder thanks to @norkunas
- 9007: Add tests for Query::getQueryCacheDriver() thanks to @derrabus
- 8997: Drop unused classes thanks to @greg0ire
- 8992: Add extension point for the "embedded" XML node thanks to @phansys
- 8981: Restore functional cache tests thanks to @derrabus
Documentation
- 9038: Minor change about double The thanks to @Cartman34
- 8987: Fix English in
note
. thanks to @ash-m - 8978: Remove detach deprecation entry in UPGRADE.md thanks to @simonberger
- 8960: Fix typo thanks to @inarli
- 8435: Minor rewording thanks to @ThomasLandauer
2.9.5
Release Notes for 2.9.5
2.9.x bugfix release (patch)
2.9.5
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
Documentation
Improvement
2.9.4
Release Notes for 2.9.4
2.9.x bugfix release (patch)
2.9.4
- Total issues resolved: 0
- Total pull requests resolved: 33
- Total contributors: 15
Improvement
- 8909: Fix build thanks to @greg0ire
- 8905: Add explicit
@return
type next to#[ReturnTypeWillChange]
thanks to @nicolas-grekas - 8899: Regenerate psalm baseline thanks to @simPod
- 8892: Bump PHPStan to 0.12.94 thanks to @derrabus
- 8847: Adapt tests to new way of wrapping thanks to @greg0ire
- 8821: Adapt ignore rules to new version of PHPStan thanks to @greg0ire
- 8810: Update Psalm baseline thanks to @greg0ire
- 8781: Fix Psalm/PHPStan errors thanks to @derrabus
- 8543: Add missing @param and @return PHPDoc attributes thanks to @simonberger
Bug
- 8907: Update getAssociationTargetClass phpdoc thanks to @VincentLanglet
- 8896: Don't pass null as parameter thanks to @derrabus
- 8894: Fix return types for PHP 8.1 thanks to @derrabus
- 8872: Fix CI SA failures thanks to @simPod
- 8801: Ignore errors about missing ReturnTypeWillChange class thanks to @derrabus
- 8800: Fix exception not thrown by "getEntityIdentifier" thanks to @jderusse
- 8784: Undeprecate targetEntity omission for some types thanks to @greg0ire
- 8769: Make templating Psalm-specific thanks to @greg0ire
- 8402: Resolving target entity in discriminator map omits fields from subtables thanks to @mpdude
Documentation
- 8883: Fix getting-started example by including cache thanks to @dopeh
- 8860: Fix typo in "Working with Objects" thanks to @t-richard
- 8830: Adding
fields
to Index thanks to @ThomasLandauer - 8823: Referenced new support for PHP8 attributes thanks to @fridde
- 8795: Update session examples in docs thanks to @SenseException
- 8778: Link to correct section thanks to @jmontoyaa
- 8777: Spell "entity" properly thanks to @jmontoyaa
Failing Test
- 8855: Failing test for GH8443 thanks to @piowin
Backporting
Backporting,Documentation
- 8814: Proposed corrected typo in demo code. thanks to @greg0ire
- 8791: Backport docs batch 2 thanks to @greg0ire
- 8790: Backport docs batch thanks to @greg0ire
- 8789: Use a more concrete, less confusing example thanks to @greg0ire
Backporting,CI
- 8806: Resurrect phpbench thanks to @greg0ire
Backporting,Improvement
2.9.3
Release Notes for 2.9.3
2.9.x bugfix release (patch)
2.9.3
-
Total issues resolved: 2
-
Total pull requests resolved: 5
-
Total contributors: 5
-
8758: Restore bc for annotations thanks to @greg0ire
-
8756: fix: handle repeatable attributes thanks to @ph-fritsche
-
8753: Edge-case regression with 2.9.x thanks to @albe
-
8742: Add ReturnTypeWillChange to ReflectionEmbeddedProperty thanks to @derrabus
-
8734: Fix metadata constructor inference by phpstan thanks to @VincentLanglet