John Cornell

Results 3 comments of John Cornell

For now I add to all enums: ```php /** @noinspection EmptyClassInspection https://github.com/kalessil/phpinspectionsea/issues/1831 */ ```

If you're using Doctrine attributes on your entities this gives you the repo class based on the entity: ```php $reflection = new ReflectionClass($entityClass); $attribute = $reflection->getAttributes(Entity::class); $repositoryClass = $attribute[0]->getArguments()['repositoryClass']; ```...