You need a third table that tracks the relationships between entity_id and article_id. When you want to make or change a relationship, you update this table.
[edit] This stackoverflow question may help you to understand, especially the most upvoted answer.