Config_relation.yaml in OC 2.x

I have created plugin in OC 3.x. I added model with hasMany relation to other model. I configured config_relation.yaml file. Everything worked as expected.

When i copied same plugin to oc 2.x envoirment none of relations doesnt work. Instead of customizeed table in backend form i see

obraz

I forgot that in oc 2 i need to set field type as partial not relation and add relationRender in partial file

<?= $this->relationRender('relatedmodel') ?>
1 Like