# Option to automatically create related entity for 1-to-1 relations

**URL:** <https://community.fibery.io/t/option-to-automatically-create-related-entity-for-1-to-1-relations/1580>\
**Category:** Get Help\
**Created:** [April 24, 2021, 9:34pm UTC](https://community.fibery.io/t/option-to-automatically-create-related-entity-for-1-to-1-relations/1580 "2021-04-24T21:34:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [April 24, 2021, 9:34pm UTC](https://community.fibery.io/t/option-to-automatically-create-related-entity-for-1-to-1-relations/1580/1 "2021-04-24T21:34:13Z")

</div>

In the absence of having true Type Composition, it would be useful for some 1-to-1 relations if Fibery could automatically create and link the related entity.

For example, if my **Customer Type** has a 1-to-1 relation to my **Person Type** , when I create a new **Customer** entity, I might want Fibery to always create a **Person** entity for it, and relate them.

This could be an option available for every 1-to-1 relation field – “_Automatically create related entity_”.

You could imagine this as an extension of the existing “Automatically Link” feature of relations.

…

Of course this is a poor substitute for real Type Composition.

With real Type Composition we could compose (include) the **Person Type** into the **Customer** Type, which would inherit/include all **Person** fields, not merely link to them as a separate, independent entity.

Then we could create relations to **Person**" anywhere, that could include “ **Customer** ” entities, as well as entities of any other Types that include **Person**.

---

<div class="post-metadata">

**Author:** ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)\
**Post date:** [April 25, 2021, 6:49am UTC](https://community.fibery.io/t/option-to-automatically-create-related-entity-for-1-to-1-relations/1580/2 "2021-04-25T06:49:04Z")

</div>

This scenario will be possible when with the first Automated Rules release. You will be able to create a rule like this:

When new Customer is created  
Then create a new Person with the Name = Customer.Name  
and set Person.Customer = Customer.

---

<div class="post-metadata">

**Author:** ![sebareb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sebareb/32/6221_2.png) [@sebareb](https://community.fibery.io/u/sebareb)\
**Post date:** [February 14, 2023, 7:55pm UTC](https://community.fibery.io/t/option-to-automatically-create-related-entity-for-1-to-1-relations/1580/3 "2023-02-14T19:55:26Z")

</div>

Hey, I’m trying to do pretty much this same thing right now, but when I try to create the automation I’m only getting the option to update the linked entity and not to create a new one.

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [February 14, 2023, 8:46pm UTC](https://community.fibery.io/t/option-to-automatically-create-related-entity-for-1-to-1-relations/1580/4 "2023-02-14T20:46:48Z")

</div>

When you’re creating the Rule and selecting the Action, scroll further down the list - the Action you want will be called “Add _\<DB name\>_” within the “\<DB Name\>” section:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/7/750e6646d7c2e4f8cb8e9f573f308295e7f2bef8.png)
