Skip to content

Tags: kiler129/orm

Tags

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

2.11.0

Toggle 2.11.0's commit message

Verified

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

…one/100)

Feature release (minor)

### 2.11.0

- Total issues resolved: **2**
- Total pull requests resolved: **35**
- Total contributors: **11**

#### Documentation

 - [9368: Fix doc blocks on ID generators](doctrine#9368) thanks to @derrabus

 - [9364: Update branch metadata for 2.11](doctrine#9364) thanks to @derrabus
 - [9328: Document return type of `getEntityState()`](doctrine#9328) thanks to @derrabus
 - [9241: Support for nesting attributes with PHP 8.1](doctrine#9241) thanks to @beberlei
 - [9174: AttributeOverride annotation is also an attribute but that is not reachable](doctrine#9174) thanks to @brzuchal
 - [9118: Generated/Virtual Columns: Insertable / Updateable](doctrine#9118) thanks to @mehldau

#### Improvement

 - [9356: Remove the `composer/package-versions-deprecated` package](doctrine#9356) thanks to @derrabus
 - [9340: Use the readonly annotation](doctrine#9340) thanks to @derrabus
 - [9319: Document LockMode enums](doctrine#9319) thanks to @derrabus
 - [9316: Support readonly properties for read operations](doctrine#9316) thanks to @derrabus
 - [9312: Leverage generic ObjectManagerDecorator](doctrine#9312) thanks to @derrabus
 - [9275: Fix type errors in `AbstractQuery` and `QueryBuilder`](doctrine#9275) thanks to @derrabus
 - [9274: Fix type errors in AnnotationDriver](doctrine#9274) thanks to @derrabus
 - [9273: Fix docblocks on nullable EM properties](doctrine#9273) thanks to @derrabus
 - [9271: Fix return types of cache interfaces](doctrine#9271) thanks to @derrabus
 - [9203: Drop support for DBAL 3.1](doctrine#9203) thanks to @derrabus
 - [9202: Add SchemaIgnoreClasses property](doctrine#9202) thanks to @simPod

#### Bug

 - [9355: Relax assertion to include null as possible outcome](doctrine#9355) thanks to @derrabus

#### Deprecation

 - [9327: Added runtime deprecation to `UnitOfWork::commit()` and `clear()`](doctrine#9327) thanks to @derrabus
 - [9309: &doctrine#91;doctrineGH-9277&doctrine#93; deprecate php driver](doctrine#9309) thanks to @beberlei
 - [9249: Deprecate `Setup::registerAutoloadDirectory()`](doctrine#9249) thanks to @derrabus
 - [9211: Add deprecation hints to `orm:convert-mapping` command](doctrine#9211) thanks to @derrabus
 - [9206: Add missing deprecations for YAML metadata mapping](doctrine#9206) thanks to @derrabus
 - [9074: Deprecate `ensureProductionSettings()`](doctrine#9074) thanks to @derrabus
 - [9072: Deprecate `AbstractHydrator::hydrateRow()`](doctrine#9072) thanks to @derrabus

#### New Feature

 - [9326: Add support for custom types with requireSQLConversion and ResultSetMappingBuilder::generateSelectClause()](doctrine#9326) thanks to @kimhemsoe
 - [9304: Add support for PHP 8.1 enums.](doctrine#9304) thanks to @beberlei
 - [9149: Detect enums and use type string (PHP 8.1 only)](doctrine#9149) thanks to @Nek-
 - [9133: Adding a setup helper for attribute metadata config](doctrine#9133) thanks to @judahnator

#### Deprecation,Improvement

 - [9325: Use `EntityManagerInterface` in type declarations](doctrine#9325) thanks to @derrabus
 - [9322: PSR-6 second level cache](doctrine#9322) thanks to @derrabus

CI
--

 - [9272: Regenerate Psalm baseline](doctrine#9272) thanks to @derrabus
 - [9267: Enable UnusedUse sniff again](doctrine#9267) thanks to @derrabus

#### Bug,DQL

 - [9266: Improve compatibility with Doctrine DBAL 4](doctrine#9266) thanks to @morozov

#### DQL,New Feature

 - [9242: Allow arithmetic expressions within IN operator](doctrine#9242) thanks to @webda2l

#### DQL,Improvement

 - [6476: Allow arithmetic expressions within IN operator](doctrine#6476) thanks to @astepin

2.10.5

Toggle 2.10.5's commit message

Verified

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

…one/104)

### 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](doctrine#9360) thanks to @derrabus
 - [9344: Remove Psalm job for analyzing DBAL 2](doctrine#9344) thanks to @greg0ire
 - [9330: Fix broken type declaration](doctrine#9330) thanks to @derrabus
 - [9295: Fix return type](doctrine#9295) thanks to @derrabus
 - [9294: Fix union type on QueryExpressionVisitorTest::testWalkComparison()](doctrine#9294) thanks to @derrabus
 - [9286: Whitelist composer plugins used by this repository](doctrine#9286) thanks to @derrabus
 - [9283: Allow symfony/cache 6](doctrine#9283) thanks to @derrabus

CI
--

 - [9349: Update Psalm baseline for Persistence 2.3](doctrine#9349) thanks to @derrabus
 - [9341: PHPStan 1.3.3, Psalm 4.18.1](doctrine#9341) thanks to @derrabus
 - [9324: Enable some previously disabled PHPCS rules](doctrine#9324) thanks to @derrabus
 - [9317: Run PHP CodeSniffer on PHP 8.1](doctrine#9317) thanks to @derrabus
 - [9315: Psalm 4.17.0](doctrine#9315) thanks to @derrabus
 - [9314: Run static analysis with language level PHP 8.1](doctrine#9314) thanks to @derrabus
 - [9303: Bump PHPStan & Psalm](doctrine#9303) thanks to @derrabus

#### Bug

 - [9339: Fix field mapping typing](doctrine#9339) thanks to @greg0ire
 - [9285: Fix XML export for `change-tracking-policy`](doctrine#9285) thanks to @Fedik
 - [9244: Put actual value instead of index inside $originalEntityData](doctrine#9244) thanks to @Feolius

#### Improvement

 - [9318: Document PHPUnit mocks with intersection types](doctrine#9318) thanks to @derrabus

#### Documentation

 - [9281: Better explain limitations of DQL "DELETE"](doctrine#9281) thanks to @mpdude
 - [9268: Fix WhereInWalker description to better describe the behaviour of this class](doctrine#9268) thanks to @LuigiCardamone
 - [9243: Removing list "Lifecycle Events"](doctrine#9243) thanks to @ThomasLandauer

2.10.4

Toggle 2.10.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Docs: use canonical order for phpdoc tags, add missed semicolon (doct…

…rine#9190)

2.10.3

Toggle 2.10.3's commit message

Verified

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

…one/102)

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](doctrine#9218) thanks to @Florian-Varrin
 - [9166: Remove reverted bc break](doctrine#9166) thanks to @alexander-schranz
 - [9161: Adding Attributes code block](doctrine#9161) thanks to @ThomasLandauer
 - [9159: Merging Lifecycle Callbacks code samples for PHP + XML + YAML](doctrine#9159) thanks to @ThomasLandauer
 - [9158: Removing paragraph on `const`s](doctrine#9158) thanks to @ThomasLandauer
 - [9156: Adding link to Embeddables](doctrine#9156) thanks to @ThomasLandauer
 - [9154: Fixing more links](doctrine#9154) thanks to @ThomasLandauer
 - [9152: Add doctrine/dbal to project composer.json](doctrine#9152) thanks to @chasen
 - [9151: Fixing links in overview table](doctrine#9151) thanks to @ThomasLandauer
 - [9150: Fix markup for variable names](doctrine#9150) thanks to @pwaring
 - [9143: Document BC break](doctrine#9143) thanks to @greg0ire
 - [9131: Overview table for events: Jump links](doctrine#9131) thanks to @ThomasLandauer

CI
--

 - [9212: Suppress Psalm's ReservedWord errors](doctrine#9212) thanks to @derrabus
 - [9195: Use `equal to` instead of `equal of` in `assertSqlGeneration()`](doctrine#9195) thanks to @simPod

 - [9204: Psalm 4.13.1, PHPStan 1.2.0](doctrine#9204) thanks to @derrabus
 - [9146: Remove old use statements](doctrine#9146) thanks to @chapterjason

#### Bug

 - [9198: Add a psalm type for field mapping](doctrine#9198) thanks to @laryjulien
 - [9147: return 0 when there's no metadata to process](doctrine#9147) thanks to @wickedOne

#### Bug,Failing Test

 - [9153: Infer type from field instead of column](doctrine#9153) thanks to @armenio

#### Improvement

 - [9123: Add XSD "orm:columntoken" type in order to support reserved words in column names](doctrine#9123) thanks to @phansys

2.10.2

Toggle 2.10.2's commit message

Verified

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

…one/101)

2.10.x bugfix release (patch)

### 2.10.2

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

CI
--

 - [9139: Upgrade workflows to 1.1.1](doctrine#9139) thanks to @greg0ire
 - [9126: Explicitly pass secrets](doctrine#9126) thanks to @greg0ire
 - [9115: PHP CodeSniffer 3.6.1](doctrine#9115) thanks to @derrabus

#### Documentation

 - [9138: Fix the upgrade guide for 2.8 changes](doctrine#9138) thanks to @stof
 - [9128: Explaining the two major ways to register an event v2](doctrine#9128) thanks to @ThomasLandauer
 - [9113: Fix typo & minor grammar issues in dql-custom-walkers.rst](doctrine#9113) thanks to @PaulCapron
 - [9107: Remove the twitter #doctrine2 hashtag refference](doctrine#9107) thanks to @BackEndTea
 - [9102: Explaining the two major ways to register an event](doctrine#9102) thanks to @ThomasLandauer
 - [9097: Explaining the two major ways to register an event](doctrine#9097) thanks to @ThomasLandauer
 - [9091: Add "@method" annotation for `wrapInTransaction()` method at `EntityManagerInterface`](doctrine#9091) thanks to @phansys
 - [9039: Overview table for events](doctrine#9039) thanks to @ThomasLandauer

 - [9136: Revert "Removing all the occurence of any"](doctrine#9136) thanks to @greg0ire

#### CI,Improvement

 - [9114: Directly reference upstream CS workflow](doctrine#9114) thanks to @greg0ire

#### Improvement

 - [9108: &doctrine#91;Psalm&doctrine#93; always true/false conditions](doctrine#9108) thanks to @orklah

#### Bug

 - [9100: ScalarColumnHydrator](doctrine#9100) thanks to @calvera
 - [9098: Honor INDEX BY construct in Query::toIterable](doctrine#9098) thanks to @ajgarlag
 - [9096: Fix SchemaValidator with abstract child class in discriminator map](doctrine#9096) thanks to @BenMorel

2.10.1

Toggle 2.10.1's commit message

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

Toggle 2.10.0's commit message

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

Toggle 2.9.6's commit message

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

Toggle 2.9.5's commit message

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