Entity relationships

Hello.

I want to automate actions in related objects with a certain type of relationship.

I created custom entity. How can I add a new relation type like "custom_entity caused by Request" ?

Thank you for advice.

Tags: