Haehnchen / idea-php-shopware-plugin

Shopware Plugin for PhpStorm which extends Symfony Plugin
MIT License
54 stars 9 forks source link

Fix create method on model doctrine events #85

Closed shyim closed 5 years ago

shyim commented 5 years ago

Doctrine Events are missunderstood as Hook and the Hook template was generated.

This PR fixes the generated code for Doctrine Events (Shopware\Models\Article\Article:postRemove)

Following template is now generated

<?php
public function foo(\Enlight_Event_EventArgs $args)
    {
        /** @var \Shopware\Models\Article\Article $entity */
        $entity = $args->get('entity');
    }