enriquepiatti / Magicento

PHPStorm plugin for Magento developers
115 stars 35 forks source link

Cronjob model click doesn't working when method is in extends class #104

Closed ihor-sviziev closed 10 years ago

ihor-sviziev commented 10 years ago

When I trying to click on my 'my_module/my_model_custom::run' line - nothing happens, but if i change it to "my_module/my_model_custom::run2" - phpstorm open file with this method.

In my config.xml i have:

    <crontab>
        <jobs>
            <my_module>
                <schedule>
                    <config_path>my_module/.../cron_expr</config_path>
                </schedule>
                <run>
                    <model>my_module/my_model_custom::run</model>
                </run>
            </my_module>
        </jobs>
    </crontab>

Class My_Module_Model_My_Model_Abstract:

class My_Module_Model_My_Model_Abstract
{
    public function run()
    {
        ...
    }
}

Class My_Module_Model_My_Model_Custom:

class My_Module_Model_My_Model_Custom extends My_Module_Model_My_Model_Abstract
{
    public function run2() {
        ...
    }
}

Magicento version: 2.6.0

enriquepiatti commented 10 years ago

This is because the method is defined inside a parent class. I've fixed it thanks for reporting it! I will release a new version with this fix and some others during this week.

ihor-sviziev commented 10 years ago

Received new update today, but this issue isn't fixed there

enriquepiatti commented 10 years ago

Igor, the new update was not released yet, maybe you have received v2.6.0 (the fix will be in 2.6.2+)

ihor-sviziev commented 10 years ago

@enriquepiatti thanks.