Relation row insertion in DB (plugin)
If I'm understanding you correctly, what you're looking for is the RelationsService's saveRelations() accessed via craft()-&gt;relations-&gt;saveRelations().

You pass in your $fieldModel, $source ElementModel and an array of $targetIds that you want to created the relations to.