# Dry-effects + rom-factory?

**URL:** <https://discourse.rom-rb.org/t/dry-effects-rom-factory/475>\
**Category:** Architecture Design\
**Created:** [July 2, 2021, 3:57am UTC](https://discourse.rom-rb.org/t/dry-effects-rom-factory/475 "2021-07-02T03:57:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianks](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.rom-rb.org/ianks/32/145_2.png) [@ianks](https://discourse.rom-rb.org/u/ianks)\
**Post date:** [July 2, 2021, 3:57am UTC](https://discourse.rom-rb.org/t/dry-effects-rom-factory/475/1 "2021-07-02T03:57:05Z")

</div>

Oftentimes, when building entities in rom-factory, I would like to have a shared entity for different factories.

This way, all of the corresponding factories can re-use the same entity:

```ruby
with_associations(user: Factory[:user]) do
  Factory[:profile] # will use the above user automatically
end

```

Thoughts?

---

<div class="post-metadata">

**Author:** ![solnic](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.rom-rb.org/solnic/32/279_2.png) [@solnic](https://discourse.rom-rb.org/u/solnic)\
**Post date:** [July 21, 2021, 6:11am UTC](https://discourse.rom-rb.org/t/dry-effects-rom-factory/475/2 "2021-07-21T06:11:18Z")

</div>

@ianks so, yes, because in rom 6.0 effects will be supported OOTB and I’ll be _greatly_ improving rom-factory thanks to the new runtime system I’ve built. Stay tuned 🙂
