Skip to content

Tags: tucksaun/doctrine-orm

Tags

2.13.1

Toggle 2.13.1's commit message

Verified

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

…one/114)

### 2.13.1

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

#### Deprecation

 - [9980: Undeprecate LifecycleEventArgs](doctrine#9980) thanks to @franmomu

#### Documentation

 - [9979: Update documentation to not use deprecated method](doctrine#9979) thanks to @franmomu
 - [9971: Update branch metadata](doctrine#9971) thanks to @derrabus

#### Static Analysis

 - [9977: Backport type fixes for EntityListenerResolver](doctrine#9977) thanks to @derrabus

#### Test Suite

 - [9972: Remove calls to deprecated `Type::getName()`](doctrine#9972) thanks to @derrabus

2.13.0

Toggle 2.13.0's commit message

Verified

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

…one/110)

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](doctrine#9969) thanks to @derrabus
 - [9915: Make EntityManager `@final` and its constructor public](doctrine#9915) thanks to @nicolas-grekas
 - [9903: schema tool: remove useless text from --dump-sql output](doctrine#9903) thanks to @glaszig
 - [9839: Use proper API for introspection of tables](doctrine#9839) thanks to @morozov
 - [9780: Kill call&doctrine#95;user&doctrine#95;func(&doctrine#95;array)](doctrine#9780) thanks to @derrabus
 - [9737: Improve compatibility with DBAL 4 for MySQL, MariaDB and PostgreSQL](doctrine#9737) thanks to @morozov
 - [9730: Forward compatibility with DBAL 4](doctrine#9730) thanks to @morozov
 - [6728: Validate XML mapping against XSD file](doctrine#6728) thanks to @greg0ire

#### Static Analysis

 - [9965: Improve phpdoc for ClassMetadataInfo](doctrine#9965) thanks to @VincentLanglet
 - [9826: Improve phpdoc for Configuration](doctrine#9826) thanks to @greg0ire
 - [9794: Add type for AssociationMapping](doctrine#9794) thanks to @VincentLanglet
 - [9756: Document types as they are passed](doctrine#9756) thanks to @greg0ire
 - [9751: Update Psalm baseline](doctrine#9751) thanks to @derrabus

#### Deprecation

 - [9945: Deprecate QueryBuilder APIs exposing its internal state](doctrine#9945) thanks to @derrabus
 - [9906: Deprecate `LifecycleEventArgs`](doctrine#9906) thanks to @franmomu
 - [9876: Change parent classes in some events](doctrine#9876) thanks to @franmomu
 - [9833: Deprecate reliance on sequence-emulated identity columns](doctrine#9833) thanks to @greg0ire
 - [9809: Deprecate passing null to Query::setFirstResult()](doctrine#9809) thanks to @greg0ire
 - [9791: Deprecate calling setters without arguments](doctrine#9791) thanks to @derrabus
 - [9786: Prepare split of output walkers and tree walkers](doctrine#9786) thanks to @derrabus
 - [9784: Deprecate passing null to Query::setDQL()](doctrine#9784) thanks to @greg0ire
 - [9765: Deprecate omitting the alias in QueryBuilder::update() and delete()](doctrine#9765) thanks to @Hanmac
 - [9747: Deprecate omitting second argument to joinColumnName() ](doctrine#9747) thanks to @greg0ire
 - [9704: Reference ClassMetadataInfo less and less](doctrine#9704) thanks to @greg0ire

#### Test Suite

 - [9938: Stop passing event manager to constructor](doctrine#9938) thanks to @greg0ire
 - [9895: Avoid SQL assertions](doctrine#9895) thanks to @greg0ire
 - [9808: Remove calls to deprecated `MockBuilder::setMethods()`](doctrine#9808) thanks to @derrabus
 - [9806: Rename Abstract*Test to *TestCase](doctrine#9806) thanks to @derrabus
 - [9796: Add missing import](doctrine#9796) thanks to @derrabus
 - [9790: MockTreeWalker should be an SqlWalker](doctrine#9790) thanks to @derrabus
 - [9789: Move duplicate fixture into dedicated file](doctrine#9789) thanks to @derrabus

#### New Feature

 - [9936: Support native enum hydration when using `NEW` operator](doctrine#9936) thanks to @romm
 - [9655: Allow setting column options like `charset` and `collation` on `JoinTable`, `JoinColumn` and `InverseJoinColumn`](doctrine#9655) thanks to @ruudk

#### Improvement,Static Analysis

 - [9932: Add helper function `TreeWalkerAdapter::getMetadataForDqlAlias()`](doctrine#9932) thanks to @derrabus

 - [9837: Address deprecation of getDatabasePlatform()](doctrine#9837) thanks to @greg0ire
 - [9801: Widen types](doctrine#9801) thanks to @greg0ire

#### Documentation

 - [9766: Document future argument better](doctrine#9766) thanks to @greg0ire

2.12.4

Toggle 2.12.4's commit message

Verified

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

…one/113)

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](doctrine#9966) thanks to @Tofandel
 - [9930: Simplify `LanguageRecognitionTest`](doctrine#9930) thanks to @derrabus
 - [9914: Avoid supportsCreateDropDatabase()](doctrine#9914) thanks to @greg0ire
 - [9907: Add tests for SQL output feature](doctrine#9907) thanks to @greg0ire
 - [9892: Address array object type deprecation](doctrine#9892) thanks to @greg0ire
 - [9874: Migrate more usages of SchemaTool::createSchema()](doctrine#9874) thanks to @greg0ire
 - [9823: Backport fixes from upstream branch](doctrine#9823) thanks to @greg0ire

#### Static Analysis

 - [9964: Psalm 4.26.0 & build failures with DBAL 3.4.0](doctrine#9964) thanks to @derrabus
 - [9941: Psalm 4.25.0, PHPStan 1.8.2](doctrine#9941) thanks to @derrabus
 - [9922: Widen types for DiscriminatorMap](doctrine#9922) thanks to @derrabus
 - [9887: PHPStan 1.8.0](doctrine#9887) thanks to @derrabus
 - [9865: Psalm 4.24.0, PHPStan 1.7.15](doctrine#9865) thanks to @derrabus
 - [9858: PHP CodeSniffer 3.7.1, PHPStan 1.7.14](doctrine#9858) thanks to @derrabus

#### Documentation

 - [9943: Update branch info in README and .doctrine-project.json](doctrine#9943) thanks to @derrabus
 - [9880: Fix typo in AbstractQuery](doctrine#9880) thanks to @CarlSchwan
 - [9871: preUpdate: Add restriction that changed field needs to be in computed…](doctrine#9871) thanks to @ThomasLandauer

#### Bug

 - [9927: Allow custom object types as foreign keys](doctrine#9927) thanks to @louisezetterlund
 - [9870: &doctrine#91;doctrineGH-9807&doctrine#93; Fix: initialize potentially empty collections at the hydration complete](doctrine#9870) thanks to @popov-a-e

2.12.3

Toggle 2.12.3's commit message

Verified

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

…one/112)

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](doctrine#9844) thanks to @derrabus
 - [9843: Flip conditional extension of legacy AnnotationDriver class](doctrine#9843) thanks to @derrabus
 - [9842: PHP CodeSniffer 3.7](doctrine#9842) thanks to @derrabus
 - [9818: Document missing possible types](doctrine#9818) thanks to @greg0ire
 - [9812: PHPStan 1.7.9](doctrine#9812) thanks to @derrabus
 - [9802: Fix wrong types](doctrine#9802) thanks to @greg0ire
 - [9785: PHPStan 1.7.0](doctrine#9785) thanks to @derrabus
 - [9779: Document callable as possible](doctrine#9779) thanks to @greg0ire
 - [9746: Better phpdoc tests](doctrine#9746) thanks to @greg0ire

#### Test Suite

 - [9841: Add missing property declaration](doctrine#9841) thanks to @derrabus
 - [9805: Remove empty test file](doctrine#9805) thanks to @derrabus

#### CI,Test Suite

 - [9840: Run tests on PHP 8.2](doctrine#9840) thanks to @derrabus

#### Documentation

 - [9769: Add use statement](doctrine#9769) thanks to @greg0ire
 - [9749: Omit version number in README](doctrine#9749) thanks to @greg0ire

CI
--

 - [9732: Exclude /ci from distribution packages](doctrine#9732) thanks to @derrabus

#### Bug

 - [9619: Make Reflection available to ConvertMappingCommand](doctrine#9619) thanks to @bartholdbos

2.12.2

Toggle 2.12.2's commit message

Verified

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

…one/111)

2.12.x bugfix release (patch)

### 2.12.2

- Total issues resolved: **0**
- Total pull requests resolved: **17**
- Total contributors: **8**

#### Improvement

 - [9723: Allow doctrine/deprecations 1.0](doctrine#9723) thanks to @derrabus

#### Static Analysis

 - [9718: Psalm 4.23, PHPStan 1.6.3](doctrine#9718) thanks to @derrabus
 - [9708: Fix psalm annotation for Entity attribute](doctrine#9708) thanks to @michnovka
 - [9703: Update ClassMetadataInfo::table definition](doctrine#9703) thanks to @pbourdet
 - [9688: PHPStan 1.6.1](doctrine#9688) thanks to @derrabus
 - [9682: PHPStan 1.6.0](doctrine#9682) thanks to @derrabus
 - [9677: Document ORM drivers only really load ORM metadata](doctrine#9677) thanks to @greg0ire
 - [9676: Fix HydrationException::invalidDiscriminatorValue parameter type](doctrine#9676) thanks to @franmomu
 - [9675: Fix type on ClassMetadata discriminatorMap](doctrine#9675) thanks to @franmomu

#### Test Suite

 - [9707: Remove some ConnectionMock methods](doctrine#9707) thanks to @morozov
 - [9706: Remove unused OrmTestCase::getTestEntityManager() parameters](doctrine#9706) thanks to @morozov
 - [9692: Use ClassMetadata over ClassMetadataInfo in tests](doctrine#9692) thanks to @greg0ire
 - [9683: Remove dynamic property declarations](doctrine#9683) thanks to @derrabus

#### Documentation

 - [9699: Add missing use statement](doctrine#9699) thanks to @ThomasLandauer
 - [9698: use valid link syntax](doctrine#9698) thanks to @ThomasLandauer
 - [9691: Reference ClassMetadaInfo less](doctrine#9691) thanks to @greg0ire

#### Bug

 - [9679: Drop SymfonyStyle&doctrine#91;listing&doctrine#93; for sqls](doctrine#9679) thanks to @simPod

2.12.1

Toggle 2.12.1's commit message

Verified

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

…one/109)

2.12.x bugfix release (patch)

### 2.12.1

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

#### Bug

 - [9671: Conditionally extend the old `AnnotationDriver` class](doctrine#9671) thanks to @derrabus

2.12.0

Toggle 2.12.0's commit message

Verified

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

…one/106)

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](doctrine#9661) thanks to @derrabus

#### Test Suite

 - [9658: Fix IdentifierFlattenerEnumIdTest](doctrine#9658) thanks to @michnovka
 - [9649: Fix test file/class names](doctrine#9649) thanks to @michnovka
 - [9612: Skip tests requiring ObjectManagerAware](doctrine#9612) thanks to @derrabus
 - [9489: Avoid calling `merge()`](doctrine#9489) thanks to @derrabus
 - [9479: Remove useless catches](doctrine#9479) thanks to @derrabus
 - [9472: Skip tests related to PersistentObject if that class is missing](doctrine#9472) thanks to @derrabus
 - [9451: Streamline cache creation in tests](doctrine#9451) thanks to @derrabus
 - [9423: Introduce `assertQueryCount()`](doctrine#9423) thanks to @derrabus
 - [9418: Switch tests to the middleware logging system](doctrine#9418) thanks to @derrabus
 - [9404: Rework some tests that use hardcoded DBAL mocks](doctrine#9404) thanks to @morozov

#### Bug

 - [9657: Fix enum hydration when fetching partial results](doctrine#9657) thanks to @michnovka
 - [9580: Check if association already contains object ](doctrine#9580) thanks to @klammbueddel
 - [9459: Check requirements for metadata drivers](doctrine#9459) thanks to @derrabus

 - [9656: Indicate support for `doctrine/persistence` 3](doctrine#9656) thanks to @derrabus

#### Deprecation,Improvement

 - [9646: Improve exception message](doctrine#9646) thanks to @greg0ire
 - [9511: Replace `TreeWalkerChainIterator` with a generator](doctrine#9511) thanks to @derrabus
 - [9443: Introduce `DoctrineSetup` as a replacement for `Setup`](doctrine#9443) thanks to @derrabus

#### Deprecation

 - [9641: Deprecate console helper](doctrine#9641) thanks to @derrabus
 - [9592: Deprecate or throw on namespace alias usage](doctrine#9592) thanks to @greg0ire
 - [9533: Deprecate custom `ObjectRepository` implementations](doctrine#9533) thanks to @derrabus
 - [9532: Un-deprecate the current proxy mechanism](doctrine#9532) thanks to @derrabus
 - [9512: Document deprecation of `AbstractCollectionPersister` helpers](doctrine#9512) thanks to @derrabus
 - [9475: Deprecate methods removed in 3.0](doctrine#9475) thanks to @derrabus
 - [9397: Deprecate MultiGetRegion](doctrine#9397) thanks to @derrabus

#### Static Analysis

 - [9633: Leverage generic persistence event classes](doctrine#9633) thanks to @derrabus
 - [9621: Fix types on ResultSetMapping](doctrine#9621) thanks to @derrabus
 - [9603: Implement int-mask-of where appropriate](doctrine#9603) thanks to @greg0ire
 - [9566: Fix types on `walkLiteral()` and `walkLikeExpression()`](doctrine#9566) thanks to @derrabus
 - [9565: Fix type on `SqlWalker::walkPathExpression()`](doctrine#9565) thanks to @derrabus
 - [9553: Document tree walker class strings](doctrine#9553) thanks to @derrabus
 - [9552: Use literal types for `JOIN&doctrine#95;TYPE&doctrine#95;*` constants](doctrine#9552) thanks to @derrabus
 - [9549: Leverage Lexer's Token type](doctrine#9549) thanks to @derrabus
 - [9541: Improve templating](doctrine#9541) thanks to @greg0ire
 - [9527: Document QueryComponent array shape](doctrine#9527) thanks to @derrabus
 - [9525: Fix more types on EntityRepository and FilterCollection](doctrine#9525) thanks to @derrabus
 - [9492: Fix types on QueryBuilder](doctrine#9492) thanks to @derrabus
 - [9474: Fix types on EntityRepository](doctrine#9474) thanks to @derrabus
 - [9401: Fix types on CacheLogger implementations](doctrine#9401) thanks to @derrabus

#### New Feature

 - [9629: Support Enum IDs and search by Enum fields](doctrine#9629) thanks to @michnovka
 - [9616: Support enums as default values](doctrine#9616) thanks to @derrabus and @jgroc-de
 - [9497: Add support for array of enums](doctrine#9497) thanks to @dreadnip
 - [9373: Support enum cases as parameters](doctrine#9373) thanks to @derrabus

#### Improvement

 - [9587: Implement colocated mapping driver](doctrine#9587) thanks to @greg0ire
 - [9578: Leverage `MemcachedAdapter::isSupported()`](doctrine#9578) thanks to @derrabus
 - [9481: Rename `DoctrineSetup` to `ORMSetup`](doctrine#9481) thanks to @derrabus
 - [9480: Modernize `strpos()` calls](doctrine#9480) thanks to @derrabus
 - [9453: Support enums in findBy() calls](doctrine#9453) thanks to @derrabus
 - [9019: validate schema command: allow to debug missing schema updates list](doctrine#9019) thanks to @COil

#### Deprecation,Static Analysis

 - [9507: Fix types on caches](doctrine#9507) thanks to @derrabus

#### Deprecation,Static Analysis,Test Suite

 - [9466: Fix types on persisters](doctrine#9466) thanks to @derrabus

#### Documentation

 - [9448: Document the new `DoctrineSetup` class](doctrine#9448) thanks to @derrabus

2.11.3

Toggle 2.11.3's commit message

Verified

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

…one/108)

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](doctrine#9663) thanks to @MrMitch
 - [9623: explicitly use the non-deprecated ORMException](doctrine#9623) thanks to @BenoitDuffez
 - [9589: Fix type errors with XML export on PHP 8.1](doctrine#9589) thanks to @vrestihnat

#### Static Analysis

 - [9648: Fix static analysis for Persistence 2.5](doctrine#9648) thanks to @derrabus
 - [9607: PHPStan 1.5.0](doctrine#9607) thanks to @derrabus
 - [9590: Ignore deprecation from Persistence](doctrine#9590) thanks to @greg0ire
 - [9577: Baseline Psalm errors caused by DBAL 3.3.3](doctrine#9577) thanks to @derrabus

#### Documentation

 - [9639: Fix composer install in contributing readme](doctrine#9639) thanks to @ruudk
 - [9611: Remove "Description of" PHPDoc](doctrine#9611) thanks to @derrabus
 - [9598: Use correct syntax for external links](doctrine#9598) thanks to @greg0ire

2.11.2

Toggle 2.11.2's commit message

Verified

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

…one/107)

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](doctrine#9574) thanks to @flack
 - [9537: Make error message suggestion accurate](doctrine#9537) thanks to @kiler129
 - [9523: Bring `FilterCollection` to a "clean" state after hash computation](doctrine#9523) thanks to @mpdude
 - [9457: PDO is not a required extension](doctrine#9457) thanks to @derrabus
 - [9452: Check requirements for metadata drivers](doctrine#9452) thanks to @derrabus

#### Documentation

 - [9569: Fixing `:doc:` link](doctrine#9569) thanks to @ThomasLandauer
 - [9563: Remove reference to removed class](doctrine#9563) thanks to @greg0ire
 - [9555: Adding PHP attributes](doctrine#9555) thanks to @ThomasLandauer
 - [9513: Fix syntax typo in attributes reference in documentation](doctrine#9513) thanks to @Einenlum
 - [9487: Fix `#&doctrine#91;DiscriminatorMap&doctrine#93;` params](doctrine#9487) thanks to @steveclifton
 - [9446: Remove trailing underscore](doctrine#9446) thanks to @greg0ire

#### Static Analysis

 - [9557: Parser: SimpleArithmeticExpression should return ArithmeticTerm](doctrine#9557) thanks to @janbarasek
 - [9546: Update baselines for Lexer 1.2.3](doctrine#9546) thanks to @derrabus
 - [9504: Fix AbstractQuery::setParameter phpdoc](doctrine#9504) thanks to @dmaicher
 - [9493: Added "false" value to $columnPrefix type declaration.](doctrine#9493) thanks to @DmytryHo
 - [9491: PHPStan 1.4.6, Psalm 4.20.0](doctrine#9491) thanks to @derrabus

CI
--

 - [9539: Drop minor version number ](doctrine#9539) thanks to @greg0ire
 - [9470: Run Postgres 14 and MariaDB 10.6 in CI](doctrine#9470) thanks to @derrabus

#### Test Suite

 - [9526: Make creating test models more straightforward and revert to swallowing exceptions](doctrine#9526) thanks to @greg0ire
 - [9519: Trigger the desired code path](doctrine#9519) thanks to @lcobucci
 - [9482: Run tests with stricter error handling](doctrine#9482) thanks to @derrabus

2.11.1

Toggle 2.11.1's commit message

Verified

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

…one/105)

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](doctrine#9442) thanks to @greg0ire
 - [9425: Ignore PHPUnit result cache everywhere](doctrine#9425) thanks to @derrabus
 - [9414: Move UnderscoreNamingStrategyTest to correct namespace](doctrine#9414) thanks to @derrabus

CI
--

 - [9440: Added php 8.1 to CI](doctrine#9440) thanks to @sir-kain

#### Static Analysis

 - [9438: Psalm 4.19.0, PHPStan 1.4.3](doctrine#9438) thanks to @derrabus
 - [9415: Added class-string typehint on $targetEntity](doctrine#9415) thanks to @hc-jworman
 - [9398: Fix type on loadCacheEntry](doctrine#9398) thanks to @derrabus
 - [9393: Update baselines for DBAL 3.3](doctrine#9393) thanks to @derrabus
 - [9385: PHPStan 1.4.0](doctrine#9385) thanks to @derrabus

#### Bug

 - [9419: Fix support for PHP 8.1 enums in embedded classes](doctrine#9419) thanks to @HypeMC
 - [9410: Allow DiscriminatorColumn with length=0](doctrine#9410) thanks to @bcremer
 - [9382: Expose enumType to DBAL to make native DB Enum possible](doctrine#9382) thanks to @javer
 - [9381: &doctrine#91;doctrineGH-9380&doctrine#93; Bugfix: Delegate ReflectionEnumProperty::getAttributes().](doctrine#9381) thanks to @beberlei and @ezkimo

#### Documentation

 - [9390: Introduce &doctrine#95;&doctrine#95;unserialize behaviour in docs](doctrine#9390) thanks to @SenseException
 - [9386: Corrected ORM version and added missing dependency](doctrine#9386) thanks to @mahakaal
 - [9357: Add detach as of list cascade-all operations](doctrine#9357) thanks to @andrew-demb
 - [9311: Accessing private properties and methods from the same class is forbidden](doctrine#9311) thanks to @olsavmic

#### Bug,Missing Tests

 - [9384: Allow using Enum from different namespace than Entity](doctrine#9384) thanks to @javer