Haehnchen / idea-php-symfony2-plugin

IntelliJ IDEA / PhpStorm Symfony Plugin
https://plugins.jetbrains.com/plugin/7219
MIT License
913 stars 137 forks source link

Support of PHP 8 attributes in Doctrine ORM #1653

Closed yura3d closed 2 years ago

yura3d commented 3 years ago

Just yesterday Doctrine 2.9 has been released: https://www.doctrine-project.org/2021/05/24/orm2.9.html

The major new feature is support of PHP 8 attributes for ORM data mapping in addition to already existing PHPDoc annotations.

But the plugin hasn't full support of PHP 8 attributes in Doctrine now.

Example 1. Value specified in mappedBy parameter of OneToMany association mapping is recognized as entity field and available for "Go to" if the mapping is writted in PHPDoc. But the value is not recognized as field if the mapping is written in attributes.

image

Example 2. Custom repository type is not inferred from EntityManager::getRepository() if entity is mapped in attributes.

image image

Haehnchen commented 3 years ago

first general attribute metadata support added via: https://github.com/Haehnchen/idea-php-symfony2-plugin/pull/1701

yura3d commented 3 years ago

@Haehnchen Thank you for the release!

I've just tested my examples provided in the first post, and the 1st example doesn't work (mappedBy still doesn't navigate to correspondent field).

asjur commented 2 years ago

This is still an issue a year later. Is there anyone working on this?

Gemorroj commented 2 years ago

@Haehnchen i think it's major issue

Haehnchen commented 2 years ago