Article to category (object2article) method or best practise

Hi,

i am writing a syncronisation for articles, categories and their connection.
So, i do not only need to fetch articles and their connections, i also need to alter/remove the connections (object2category).

I’d expect oxarticle to have removeCategory/addCategory or oxCategory to have addArticle/removeArticle but those methods do not exist.

Since those do not exist, how should i remove connections? Do i just write my own query and remove the connection or is there a “Best Practise” for doing so?

There is a “oxERPType_Article2Category” objct (core/objects/oxerptype_article2category.php) but i haven’t found a single instance in the source where it is instanciated or set.
It actually only exists as a class and is never used.
Does anyone know what it is for and how to use it?

If you add or remove articles manually this is done in application/controllers/admin/category_main_ajax.php, addArticle and removeArticle, so i would mimic those methods.

Sadly that’s what i guessed. There is no MVC way of doing this.
Thanks thou.

You could extend oxcategory with a module to add this functionality.