<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/new-in-symfony-8-2-doctrine-improvements-symfony-blog--2z7xn3o28" -->

---
title: New in Symfony 8.2: Doctrine improvements (Symfony Blog)
description: Symfony 8.2 removes Doctrine configuration you used to write by hand. Entities tagged with #[Entity] or #[MappedSuperclass] get a new doctrine.orm.entity tag,...
canonical: https://daily.dev/posts/new-in-symfony-8-2-doctrine-improvements-symfony-blog--2z7xn3o28
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: New in Symfony 8.2: Doctrine improvements (Symfony Blog) | daily.dev
og:description: Symfony 8.2 removes Doctrine configuration you used to write by hand. Entities tagged with #[Entity] or #[MappedSuperclass] get a new doctrine.orm.entity tag,...
og:url: https://daily.dev/posts/new-in-symfony-8-2-doctrine-improvements-symfony-blog--2z7xn3o28
og:image: https://api.daily.dev/og/posts/2z7XN3o28.png
og:image:alt: New in Symfony 8.2: Doctrine improvements (Symfony Blog)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# New in Symfony 8.2: Doctrine improvements (Symfony Blog)

**[Symfony](https://daily.dev/sources/symfony)** · 4 min read · 0 upvotes · 0 comments

## Summary

Symfony 8.2 removes Doctrine configuration you used to write by hand. Entities tagged with #[Entity] or #[MappedSuperclass] get a new doctrine.orm.entity tag, so DoctrineBundle 3.4 registers them without mappings (this requires Doctrine ORM 3.6 or higher). DatePoint columns no longer need type: 'date_point'. The Serializer now keeps declared collection classes, such as ArrayCollection, when denormalizing. Four new Messenger middleware work on DBAL connections, so apps without the ORM can ping, close and wrap transactions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://symfony.com/blog/new-in-symfony-8-2-doctrine-improvements>

## Questions this post answers

### How do I stop configuring Doctrine entity mappings by hand in Symfony 8.2?

Symfony 8.2 tags classes with #[Entity] or #[MappedSuperclass] using a new doctrine.orm.entity tag, and DoctrineBundle 3.4 uses it to register entities. Discovery is on when no mappings or auto_mapping are defined, requires Doctrine ORM 3.6 or higher, and needs the entity directory removed from the services.yaml exclude list.

_Developers keeping Symfony upgrades painless follow changes like this on daily.dev._

### Do I still need type: 'date_point' for a DatePoint column in Symfony 8.2?

No. In Symfony 8.2 a plain #[ORM\Column] on a DatePoint property works in all entity managers. A typed field mapper configured in DoctrineBundle is still asked first. The day_point and time_point types also store DatePoint objects, so those still have to be set explicitly.

_If you maintain Symfony entities, daily.dev keeps you current on mapping changes like this._

### Can I use Symfony Messenger Doctrine middleware without the ORM, using only DBAL?

Yes, since Symfony 8.2 adds four DBAL-based middleware: doctrine_dbal_ping_connection, doctrine_dbal_open_transaction_logger, doctrine_dbal_close_connection and doctrine_dbal_transaction. They require DoctrineBundle 3.4 or higher. Except for the transaction middleware, they apply to all DBAL connections when you pass no name.

_Teams running Messenger on DBAL-only apps track releases like this on daily.dev._

## Similar posts on daily.dev

- [New in Symfony 8.2: Performance Improvements \(Symfony Blog\)](https://daily.dev/posts/new-in-symfony-8-2-performance-improvements-symfony-blog--ef0ps6tns) · Symfony · 4 upvotes · 0 comments
- [New in Symfony 8.2: Encrypted Doctrine Columns \(Symfony Blog\)](https://daily.dev/posts/new-in-symfony-8-2-encrypted-doctrine-columns-symfony-blog--qod9gm3mn) · Symfony · 6 upvotes · 0 comments
- [Symfony 8.1 curated new features \(Symfony Blog\)](https://daily.dev/posts/symfony-8-1-curated-new-features-symfony-blog--9qonflcdy) · Symfony · 4 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#symfony](https://daily.dev/tags/symfony)

[View this post on daily.dev](https://daily.dev/posts/new-in-symfony-8-2-doctrine-improvements-symfony-blog--2z7xn3o28)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"New in Symfony 8.2: Doctrine improvements (Symfony Blog)","url":"https://daily.dev/posts/new-in-symfony-8-2-doctrine-improvements-symfony-blog--2z7xn3o28","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/new-in-symfony-8-2-doctrine-improvements-symfony-blog--2z7xn3o28"},"datePublished":"2026-11-28T08:21:14.347Z","dateModified":"2026-11-28T08:21:40.275Z","description":"Symfony 8.2 removes Doctrine configuration you used to write by hand. Entities tagged with #[Entity] or #[MappedSuperclass] get a new doctrine.orm.entity tag,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/327b244859fddae8f3a20d0225898aa0?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/327b244859fddae8f3a20d0225898aa0?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Symfony","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Symfony","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cc07051b7112472f9729e73c14660a64","url":"https://daily.dev/sources/symfony"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/new-in-symfony-8-2-doctrine-improvements-symfony-blog--2z7xn3o28","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"php,symfony","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Symfony","item":"https://daily.dev/sources/symfony"},{"@type":"ListItem","position":3,"name":"New in Symfony 8.2: Doctrine improvements (Symfony Blog)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/new-in-symfony-8-2-doctrine-improvements-symfony-blog--2z7xn3o28#faq","mainEntity":[{"@type":"Question","name":"How do I stop configuring Doctrine entity mappings by hand in Symfony 8.2?","acceptedAnswer":{"@type":"Answer","text":"Symfony 8.2 tags classes with #[Entity] or #[MappedSuperclass] using a new doctrine.orm.entity tag, and DoctrineBundle 3.4 uses it to register entities. Discovery is on when no mappings or auto_mapping are defined, requires Doctrine ORM 3.6 or higher, and needs the entity directory removed from the services.yaml exclude list. Developers keeping Symfony upgrades painless follow changes like this on daily.dev."}},{"@type":"Question","name":"Do I still need type: 'date_point' for a DatePoint column in Symfony 8.2?","acceptedAnswer":{"@type":"Answer","text":"No. In Symfony 8.2 a plain #[ORM\\Column] on a DatePoint property works in all entity managers. A typed field mapper configured in DoctrineBundle is still asked first. The day_point and time_point types also store DatePoint objects, so those still have to be set explicitly. If you maintain Symfony entities, daily.dev keeps you current on mapping changes like this."}},{"@type":"Question","name":"Can I use Symfony Messenger Doctrine middleware without the ORM, using only DBAL?","acceptedAnswer":{"@type":"Answer","text":"Yes, since Symfony 8.2 adds four DBAL-based middleware: doctrine_dbal_ping_connection, doctrine_dbal_open_transaction_logger, doctrine_dbal_close_connection and doctrine_dbal_transaction. They require DoctrineBundle 3.4 or higher. Except for the transaction middleware, they apply to all DBAL connections when you pass no name. Teams running Messenger on DBAL-only apps track releases like this on daily.dev."}}]}
```

