Closed yura3d closed 2 years ago
first general attribute metadata support added via: https://github.com/Haehnchen/idea-php-symfony2-plugin/pull/1701
@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).
This is still an issue a year later. Is there anyone working on this?
@Haehnchen i think it's major issue
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 ofOneToMany
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.Example 2. Custom repository type is not inferred from
EntityManager::getRepository()
if entity is mapped in attributes.