idea-php-symfony2-plugin icon indicating copy to clipboard operation
idea-php-symfony2-plugin copied to clipboard

getRepository() handling does not appear to support "self::class" and "__CLASS__"

Open m29corey opened this issue 2 years ago • 0 comments

Attempting to use a repository function within a Doctrine Lifecycle Callback, PhpStorm cannot find repository functions when getting the repository for self::class (or __CLASS__).

It does work when using ClassName::class, but that is less than ideal from within the same class.

Here is a screenshot to illustrate: image

I could see not supporting static::class as it is resolved at runtime, but it would be nice if self::class was supported.

m29corey avatar Oct 06 '23 02:10 m29corey