Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

ERP SOAP Plugin will not find classes in modules

$
0
0
Hello,


EE 5.1.7, ERP 2.13.0

We have developed a module in which we have defined some model classes.
Now we are developping a plugin for SOAP.

When calling oxNew('myclass_in_my_module') in our plugin code we get a Class Not Found exception.
When calling oxNew('oxarticle') everything is fine.

When we call oxNew('myclass_in_my_module') somewhere in the Frontend everything is fine, too.

So it seems that included module classes cannot be referenced by a SOAP ERP plugin.

Of course we can copy our module class in application/models - then the plugin code works.

But this would break the new coding guidelines: put all your own stuff in modules and leave the Oxid file structure untouched.

Is this a bug?
Is this a situation the developers have not considered?

Or do I miss the right way to do it - call a module class from within an ERP plugin?

Any ideas appreciated!


finnegan

Viewing all articles
Browse latest Browse all 6951

Trending Articles