Plans for PHP 8 - promoted properties and attributes #6561

Closed
opened 2026-01-22 15:35:01 +01:00 by admin · 1 comment
Owner

Originally created by @ondrejmirtes on GitHub (Nov 3, 2020).

Hi 👋

What are your plans for PHP 8, especially promoted properties and attributes?

  1. Are there going to be mapping attributes so we could use #[ORM\Column] instead of /** @var ORM\Column */?
  2. Is Doctrine ORM going to supported mapping of promoted properties?
  3. Will promoted properties be able to be mapped using both @var and attributes?

See relevant Twitter poll I made: https://twitter.com/OndrejMirtes/status/1322924057428373504

Thank you!

Originally created by @ondrejmirtes on GitHub (Nov 3, 2020). Hi 👋 What are your plans for PHP 8, especially promoted properties and attributes? 1) Are there going to be mapping attributes so we could use `#[ORM\Column]` instead of `/** @var ORM\Column */`? 2) Is Doctrine ORM going to supported mapping of promoted properties? 3) Will promoted properties be able to be mapped using both `@var` and attributes? See relevant Twitter poll I made: https://twitter.com/OndrejMirtes/status/1322924057428373504 Thank you!
admin closed this issue 2026-01-22 15:35:02 +01:00
Author
Owner

@beberlei commented on GitHub (Nov 3, 2020):

Yes to all three qeustions, see #8266

@beberlei commented on GitHub (Nov 3, 2020): Yes to all three qeustions, see #8266
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6561