Populate many-to-many model


I’ve a many-to-many model but the populateRelation method offers only one related model, in my case I have two new generated models and would like to link them between the many-to-many model. How can I do this in runtime? :-/

Thanks a lot,

a solution I’ve found is to use transaction, if this hint will help someone in the future