Skip to content

Tags: XTAIN/orm

Tags

2.10.1

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.10.1](https://github.com/doctrine/orm/milest…

…one/99)

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](doctrine#9090) thanks to @knallcharge
 - [9089: Return value of Doctrine\ORM\Query::getFirstResult() must be of the type int or null, string returned](doctrine#9089) thanks to @knallcharge
 - [9079: Add integer cast in setMaxResults methods of Query and QueryBuilder](doctrine#9079) thanks to @mitelg

#### Documentation

 - [9084: Update phpdoc comment - association-mapping.rst ](doctrine#9084) thanks to @annechko

2.10.0

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.10.0](https://github.com/doctrine/orm/milest…

…one/89)

### 2.10.0

- Total issues resolved: **4**
- Total pull requests resolved: **56**
- Total contributors: **9**

CI
--

 - [9057: Add PHP 8.1 to CI](doctrine#9057) thanks to @derrabus
 - [8874: Build with DBAL 3](doctrine#8874) thanks to @greg0ire

#### Improvement

 - [9056: Remove calls to `ForeignKeyConstraint::getColumns()`](doctrine#9056) thanks to @derrabus
 - [8996: Support for PSR-6 result caches](doctrine#8996) thanks to @derrabus
 - [8962: Stop swallowing exceptions](doctrine#8962) thanks to @greg0ire
 - [8954: Fix references to deprecated `DBALException`](doctrine#8954) thanks to @derrabus
 - [8953: Don't call deprecated `getSchemaManager()`](doctrine#8953) thanks to @derrabus
 - [8952: Drop more usages of SimpleAnnotationReader](doctrine#8952) thanks to @greg0ire
 - [8949: Make mock layer compatible with DBAL 3](doctrine#8949) thanks to @derrabus
 - [8946: Support for DBAL 3's platform classes](doctrine#8946) thanks to @derrabus
 - [8945: Document possibly-null member variables](doctrine#8945) thanks to @greg0ire
 - [8944: Remove references to `Type::DATETIME`](doctrine#8944) thanks to @derrabus
 - [8941: Remove calls to `fixSchemaElementName()`](doctrine#8941) thanks to @derrabus
 - [8939: Remove calls to `Driver::getName()`](doctrine#8939) thanks to @derrabus
 - [8938: Bump Psalm to 4.9.3](doctrine#8938) thanks to @derrabus
 - [8935: Remove calls to deprecated Connection methods](doctrine#8935) thanks to @derrabus
 - [8928: Add types to `EM::wrapInTransaction()`](doctrine#8928) thanks to @simPod
 - [8915: Address Type deprecation messages](doctrine#8915) thanks to @basseta
 - [8889: doctrine/dbal v3 - Make sure that values passed to are not null](doctrine#8889) thanks to @scyzoryck
 - [8870: Remove calls to prefersSequences()](doctrine#8870) thanks to @derrabus
 - [8836: Make implicit type casts explicit](doctrine#8836) thanks to @greg0ire
 - [8794: Fix deprecated DBAL calls](doctrine#8794) thanks to @derrabus

#### Bug

 - [9050: fix: prevent TypeError in QueryBuilder joins](doctrine#9050) thanks to @dunglas
 - [8943: Add missing EntityManagerInterface argument to callable that is being passed to `EM::wrapInTransaction()`](doctrine#8943) thanks to @simPod

#### Deprecation

 - [9046: Deprecate isIdGeneratorTable and isIdentifierUuid](doctrine#9046) thanks to @derrabus
 - [8820: &doctrine#91;doctrineGH-8818&doctrine#93; Deprecate entity namespace short aliases.](doctrine#8820) thanks to @beberlei

#### Documentation

 - [9043: Update documentation regarding caching](doctrine#9043) thanks to @derrabus

#### Deprecation,Improvement

 - [9004: Use PSR-6 for accessing the query cache](doctrine#9004) thanks to @derrabus
 - [9002: Switch cache configuration to PSR-6](doctrine#9002) thanks to @derrabus

 - [8984: Remove unnecessary `method&doctrine#95;exists()` checks](doctrine#8984) thanks to @derrabus
 - [8964: DBAL 3](doctrine#8964) thanks to @derrabus
 - [8957: Only wire ConnectionHelper if it's available](doctrine#8957) thanks to @derrabus
 - [8950: PHPStan 0.12.96](doctrine#8950) thanks to @derrabus
 - [8948: Remove ImportCommand from console](doctrine#8948) thanks to @derrabus
 - [8947: Remove UUID generator strategy from fixtures](doctrine#8947) thanks to @derrabus
 - [8942: Remove remaining call to `prefersSequences()`](doctrine#8942) thanks to @derrabus
 - [8940: Remove calls to `EchoSQLLogger`](doctrine#8940) thanks to @derrabus
 - [8937: Don't pass `false` as lock mode to `appendLockHint()`](doctrine#8937) thanks to @derrabus
 - [8936: Reset Psalm baseline](doctrine#8936) thanks to @derrabus
 - [8934: Remove calls to `AbstractPlatform::getSQLResultCasing()`](doctrine#8934) thanks to @derrabus
 - [8932: Drop support for generating json array fields](doctrine#8932) thanks to @greg0ire
 - [8898: Throw exception NotSupported Exception for `UuidGenerator` with doctr…](doctrine#8898) thanks to @scyzoryck
 - [8887: Move `getSQLResultCasing` code into ORM from DBAL](doctrine#8887) thanks to @beberlei
 - [8862: Change $this->assert* to self::assert* in unit tests](doctrine#8862) thanks to @carnage
 - [8841: Enable strict mode](doctrine#8841) thanks to @greg0ire and @beberlei
 - [8780: Fix usages of deprecated DBAL constants](doctrine#8780) thanks to @derrabus
 - [8419: Introduce `EntityManagerInterface#wrapInTransaction()`](doctrine#8419) thanks to @simPod

#### BC Break,Deprecation

 - [8961: Deprecate / remove TABLE id generator strategy](doctrine#8961) thanks to @greg0ire

#### New Feature

 - [8919: feat(ScalarColumnHydrator): added ScalarColumnHydrator to get flat array results from query for single column](doctrine#8919) thanks to @bhushan

#### Backporting

 - [8859: Drop tools/sandbox](doctrine#8859) thanks to @greg0ire
 - [8844: Ditch SimpleAnnotationReader](doctrine#8844) thanks to @greg0ire
 - [8837: Replace spl&doctrine#95;object&doctrine#95;hash() with spl&doctrine#95;object&doctrine#95;id()](doctrine#8837) thanks to @greg0ire

#### BC Break,Backporting

 - [8852: Remove possibility to extend the doctrine mapping xml schema with anything](doctrine#8852) thanks to @greg0ire
 - [8851: Remove unused exceptions](doctrine#8851) thanks to @greg0ire

#### Backporting,Improvement

 - [8793: Backport slamdunk's work](doctrine#8793) thanks to @greg0ire
 - [8792: Backport malukenho's work](doctrine#8792) thanks to @greg0ire
 - [8692: Split the ORMException class](doctrine#8692) thanks to @greg0ire

2.9.6

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.9.6](https://github.com/doctrine/orm/milesto…

…ne/97)

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](doctrine#9058) thanks to @derrabus
 - [9006: Add PHP 8.1 to CI](doctrine#9006) thanks to @derrabus
 - [8979: Bump PHPStan and Psalm](doctrine#8979) thanks to @derrabus

#### Bug

 - [9053: Fix locking non-existing entity](doctrine#9053) thanks to @sztyup
 - [9028:  Don't presume one-to-one lookup returned an entity ](doctrine#9028) thanks to @gregtyler
 - [9024: Fix docblock types for some nullable properties](doctrine#9024) thanks to @phansys
 - [9010: Fix ignoring custom types for PersistentCollection matching()](doctrine#9010) thanks to @sztyup
 - [9001: Remove Proxy from EntityManagerInterface contract](doctrine#9001) thanks to @derrabus
 - [9000: Fix class casing and avoid name collisions](doctrine#9000) thanks to @derrabus
 - [8959: Fix `getEntityChangeSet` return typehint](doctrine#8959) thanks to @norkunas
 - [8903: SchemaValidator: Fix mapped superclass missing in discriminator map](doctrine#8903) thanks to @olsavmic

#### Improvement

 - [9048: Duplicate testTwoIterateHydrations](doctrine#9048) thanks to @derrabus
 - [9017: Fix some typehints in QueryBuilder](doctrine#9017) thanks to @norkunas
 - [9007: Add tests for Query::getQueryCacheDriver()](doctrine#9007) thanks to @derrabus
 - [8997: Drop unused classes](doctrine#8997) thanks to @greg0ire
 - [8992: Add extension point for the "embedded" XML node](doctrine#8992) thanks to @phansys
 - [8981: Restore functional cache tests](doctrine#8981) thanks to @derrabus

#### Documentation

 - [9038: Minor change about double The](doctrine#9038) thanks to @Cartman34
 - [8987: Fix English in `note`.](doctrine#8987) thanks to @ash-m
 - [8978: Remove detach deprecation entry in UPGRADE.md](doctrine#8978) thanks to @simonberger
 - [8960: Fix typo](doctrine#8960) thanks to @inarli
 - [8435: Minor rewording](doctrine#8435) thanks to @ThomasLandauer

2.9.5

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.9.5](https://github.com/doctrine/orm/milesto…

…ne/96)

2.9.x bugfix release (patch)

### 2.9.5

- Total issues resolved: **0**
- Total pull requests resolved: **2**
- Total contributors: **2**

#### Documentation

 - [8930: Introduce 2.10 to readme](doctrine#8930) thanks to @SenseException

#### Improvement

 - [8895: Implement &doctrine#95;&doctrine#95;serialize() and &doctrine#95;&doctrine#95;unserialize()](doctrine#8895) thanks to @derrabus

2.9.4

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.9.4](https://github.com/doctrine/orm/milesto…

…ne/95)

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](doctrine#8909) thanks to @greg0ire
 - [8905: Add explicit `@return` type next to `#&doctrine#91;ReturnTypeWillChange&doctrine#93;`](doctrine#8905) thanks to @nicolas-grekas
 - [8899: Regenerate psalm baseline](doctrine#8899) thanks to @simPod
 - [8892: Bump PHPStan to 0.12.94](doctrine#8892) thanks to @derrabus
 - [8847: Adapt tests to new way of wrapping](doctrine#8847) thanks to @greg0ire
 - [8821: Adapt ignore rules to new version of PHPStan](doctrine#8821) thanks to @greg0ire
 - [8810: Update Psalm baseline](doctrine#8810) thanks to @greg0ire
 - [8781: Fix Psalm/PHPStan errors](doctrine#8781) thanks to @derrabus
 - [8543: Add missing @param and @return PHPDoc attributes](doctrine#8543) thanks to @simonberger

#### Bug

 - [8907: Update getAssociationTargetClass phpdoc](doctrine#8907) thanks to @VincentLanglet
 - [8896: Don't pass null as parameter](doctrine#8896) thanks to @derrabus
 - [8894: Fix return types for PHP 8.1](doctrine#8894) thanks to @derrabus
 - [8872: Fix CI SA failures](doctrine#8872) thanks to @simPod
 - [8801: Ignore errors about missing ReturnTypeWillChange class](doctrine#8801) thanks to @derrabus
 - [8800: Fix exception not thrown by "getEntityIdentifier"](doctrine#8800) thanks to @jderusse
 - [8784: Undeprecate targetEntity omission for some types](doctrine#8784) thanks to @greg0ire
 - [8769: Make templating Psalm-specific](doctrine#8769) thanks to @greg0ire
 - [8402: Resolving target entity in discriminator map omits fields from subtables](doctrine#8402) thanks to @mpdude

#### Documentation

 - [8883: Fix getting-started example by including cache](doctrine#8883) thanks to @dopeh
 - [8860: Fix typo in "Working with Objects"](doctrine#8860) thanks to @t-richard
 - [8830: Adding `fields` to Index](doctrine#8830) thanks to @ThomasLandauer
 - [8823: Referenced new support for PHP8 attributes](doctrine#8823) thanks to @fridde
 - [8795: Update session examples in docs](doctrine#8795) thanks to @SenseException
 - [8778: Link to correct section](doctrine#8778) thanks to @jmontoyaa
 - [8777: Spell "entity" properly](doctrine#8777) thanks to @jmontoyaa

#### Failing Test

 - [8855: Failing test for GH8443](doctrine#8855) thanks to @piowin

#### Backporting

 - [8825: Backport Github issue and PR templates](doctrine#8825) thanks to @greg0ire

#### Backporting,Documentation

 - [8814: Proposed corrected typo in demo code.](doctrine#8814) thanks to @greg0ire
 - [8791: Backport docs batch 2](doctrine#8791) thanks to @greg0ire
 - [8790: Backport docs batch](doctrine#8790) thanks to @greg0ire
 - [8789: Use a more concrete, less confusing example](doctrine#8789) thanks to @greg0ire

#### Backporting,CI

 - [8806: Resurrect phpbench](doctrine#8806) thanks to @greg0ire

#### Backporting,Improvement

 - [8798:  Remove hack to access class scope inside closures](doctrine#8798) thanks to @greg0ire

2.9.3

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.9.3](https://github.com/doctrine/orm/milesto…

…ne/94)

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](doctrine#8758) thanks to @greg0ire
 - [8756: fix: handle repeatable attributes](doctrine#8756) thanks to @ph-fritsche
 - [8753: Edge-case regression with 2.9.x](doctrine#8753) thanks to @albe
 - [8742: Add ReturnTypeWillChange to ReflectionEmbeddedProperty](doctrine#8742) thanks to @derrabus
 - [8734: Fix metadata constructor inference by phpstan](doctrine#8734) thanks to @VincentLanglet

#### Bug

 - [8740: Make ClassMetadata covariant](doctrine#8740) thanks to @VincentLanglet

2.9.2

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.9.2](https://github.com/doctrine/orm/milesto…

…ne/93)

### 2.9.2

- Total issues resolved: **1**
- Total pull requests resolved: **5**
- Total contributors: **6**

 - [8732: &doctrine#91;doctrineGH-8723&doctrine#93; Remove use of nullability to automatically detect nullable status](doctrine#8732) thanks to @beberlei and @jmsche
 - [8724: Add automatic type detection for Embedded.](doctrine#8724) thanks to @Warxcell
 - [8708: Fix ClassMetadaInfo template inference](doctrine#8708) thanks to @VincentLanglet

#### Bug

 - [8722: Fix metadata cache compatibility layer](doctrine#8722) thanks to @alcaeus
 - [8710: Handle generic parameters in UnitOfWork](doctrine#8710) thanks to @franmomu

2.9.1

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.9.1](https://github.com/doctrine/orm/milesto…

…ne/92)

### 2.9.1

- Total issues resolved: **1**
- Total pull requests resolved: **1**
- Total contributors: **2**

 - [8713: Stop using Webmozart to fix error in Query/Parser](doctrine#8713) thanks to @peter-gribanov
 - [8711:  Attempted to load class "Assert"](doctrine#8711) thanks to @ben29

2.9.0

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.9.0](https://github.com/doctrine/orm/milesto…

…ne/84)

Feature release (minor)

### 2.9.0

- Total issues resolved: **18**
- Total pull requests resolved: **30**
- Total contributors: **18**

CI
--

 - [8691: Check for use of deprecated API with Psalm](doctrine#8691) thanks to @alcaeus

 - [8678: &doctrine#91;doctrineGh-8589&doctrine#93; A new approach to non-nullable typed associations for BC](doctrine#8678) thanks to @beberlei
 - [8677: &doctrine#91;doctrineGH-8676&doctrine#93; Allow nested annotations to work without parents as attributes](doctrine#8677) thanks to @beberlei and @Nemo64
 - [8671: Reflect that default EntityManager is not always named `default`](doctrine#8671) thanks to @simPod
 - [8646: &doctrine#91;doctrineGH-8327&doctrine#93; Make EntityManagerProvider compatible with expected DoctrineBundle usage](doctrine#8646) thanks to @beberlei and @PowerKiKi
 - [8642: How to create schema using Schema tool in v2.9.x?](doctrine#8642) thanks to @simPod
 - [8629: Fields for unique constraints](doctrine#8629) thanks to @beberlei and @alexander-schranz
 - [8613: Reintroduce PHP 7.1 support](doctrine#8613) thanks to @beberlei
 - [8589: Fix typed properties for default metadata (doctrine#7939)](doctrine#8589) thanks to @Lustmored and @beberlei
 - [8553: Bump doctrine/deprecations to at least v0.5.3](doctrine#8553) thanks to @beberlei
 - [8517: &doctrine#91;doctrineGH-8458&doctrine#93; Properly deprecate ConvertDoctrine1Schema](doctrine#8517) thanks to @beberlei
 - [8472: &doctrine#91;doctrineGH-8471&doctrine#93; Deprecate Partial DQL syntax and forcing partial loads.](doctrine#8472) thanks to @beberlei
 - [8466: Introduce doctrine/deprecations](doctrine#8466) thanks to @beberlei
 - [8439: Use typed properties for default metadata for doctrine#7939](doctrine#8439) thanks to @Lustmored and @beberlei
 - [8438: DDC-2076 Remove useless join over target table of ManyToMany relationship](doctrine#8438) thanks to @plfort
 - [8417: Restrict EntityManagerInterface::getRepository](doctrine#8417) thanks to @VincentLanglet
 - [8382: &doctrine#91;doctrineGH-6396&doctrine#93; Allow custom hydrators access to meta columns](doctrine#8382) thanks to @beberlei
 - [8378: &doctrine#91;doctrineGH-6578&doctrine#93; Add validation that inherited entity class is mapped in discriminator.](doctrine#8378) thanks to @beberlei
 - [8377: Add Doctrine\ORM\Query\Expr::mod()](doctrine#8377) thanks to @beberlei and @holtkamp
 - [8375: Support for Array parameters in SQL filters](doctrine#8375) thanks to @beberlei and @doctrinebot
 - [8357: Add psalm annotation to ArrayCollection of Parameters](doctrine#8357) thanks to @snapshotpl
 - [8266: &doctrine#91;doctrineGH-8265&doctrine#93; Prototype for Attribute Metadata Driver](doctrine#8266) thanks to @beberlei
 - [7936: &doctrine#91;doctrineGH-5202&doctrine#93; Implement Query::HINT&doctrine#95;READ&doctrine#95;ONLY flag](doctrine#7936) thanks to @beberlei and @doctrinebot
 - [7918: Add support for INDEX BY an associated entity (2.8.x)](doctrine#7918) thanks to @andrews05 and @crtl

#### Improvement

 - [8672: Allow installing doctrine/cache 2.0](doctrine#8672) thanks to @alcaeus
 - [8548: Adding details to types in PHPDoc](doctrine#8548) thanks to @orklah
 - [8544: Add type declarations where backwards-compatible](doctrine#8544) thanks to @greg0ire
 - [8380: &doctrine#91;doctrineGH-7128&doctrine#93; Improve OneToManyRequiresMappedBy Exception message](doctrine#8380) thanks to @beberlei and @jakumi

#### Deprecation,New Feature

 - [8651: Introduce PSR-6 for metadata caching](doctrine#8651) thanks to @alcaeus

#### Deprecation

 - [8592: Deprecated Named Native and DQL Queries](doctrine#8592) thanks to @beberlei
 - [8524: &doctrine#91;doctrineGH-8327&doctrine#93; Deprecate EntityManagerHelper for a provider abstraction.](doctrine#8524) thanks to @beberlei and @PowerKiKi
 - [8383: Deprecated notify change tracking policy](doctrine#8383) thanks to @beberlei
 - [8381: &doctrine#91;doctrineGH-6855&doctrine#93; Prevent unsupported lifecycle callback mapping on embedded classes.](doctrine#8381) thanks to @beberlei

#### New Feature,Question

 - [7762: Psalm support](doctrine#7762) thanks to @zerkms

2.8.5

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [2.8.5](https://github.com/doctrine/orm/milesto…

…ne/91)

2.8.x bugfix release (patch)

### 2.8.5

- Total issues resolved: **0**
- Total pull requests resolved: **15**
- Total contributors: **9**

CI
--

 - [8701: Allow Symfony 6.0](doctrine#8701) thanks to @jderusse

#### Bug

 - [8700: Fix undefined index](doctrine#8700) thanks to @deguif
 - [8604: Fix psalm param typehint for OneToManyAssociationBuilder::setOrderBy method](doctrine#8604) thanks to @janatjak
 - [8566: SimpleObjectHydrator: skip unsuit custom type before convert it](doctrine#8566) thanks to @tweet9ra

 - [8699: Fix some static analysis issues](doctrine#8699) thanks to @greg0ire
 - [8698: Fix cache deprecation](doctrine#8698) thanks to @deguif
 - [8649: ConvertDoctrine1Schema: Fix Doctrine 1 `notnull` field import](doctrine#8649) thanks to @aweelex
 - [8644: Describe return types more accurately](doctrine#8644) thanks to @greg0ire
 - [8600: Remove internal tag from computeChangeSet](doctrine#8600) thanks to @VincentLanglet
 - [8594: Ensure test is suffixed with Test](doctrine#8594) thanks to @greg0ire

#### Improvement

 - [8636: Update ignore rules to reflect current situation](doctrine#8636) thanks to @greg0ire
 - [8634: upgrade static tools](doctrine#8634) thanks to @orklah
 - [8627: Add baseline files for static analyzers](doctrine#8627) thanks to @greg0ire
 - [8617: Upgrade to doctrine/coding-standard 9](doctrine#8617) thanks to @greg0ire
 - [8552: Fix remaining warnings from the phpunit9 upgrade](doctrine#8552) thanks to @acoulton