Advance use of external form (many-to-many relation on $this->btTable table)

Permalink
I'm using external form block to show input form to user and save inserted data.
Data are saved on database and loaded on constructor. It works till the table is easy.

Now I have to create a many-to-many relation to the table ($this->table) and I'd like to follow the methods provided by Concrete (eg, parent::save($args) method) and not to interact directly with ADOdb Active Record class.

As you can see by the code I load data on __construct personalizing the WHERE clause on Load(). I'd like to link $this->record with the other tables ($this->linkRecord and $this->linkedRecord) in order to automatically load and save data on that tables and interact with them through the $this->record object.

Is it possible?

Thank you

1 Attachment