Relation row insertion in DB (plugin) this is my first question on StackExchange regarding CraftCMS. 

Currently im working on a plugin that should insert a relation row (in db) regarding an entry and asset (image). 

Is there a simple and easy way to insert a row in the DB with asset id, source id and field id?

Thanks in advance
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.