rom-rb / rom-factory

Data generator with support for persistence backends
MIT License
83 stars 42 forks source link

Honor zero count on one-to-one associations #50

Closed ianks closed 4 years ago

ianks commented 4 years ago

Previously, rom-factory ignored the count param of an association. This can lead to unexpected behavior, and potentially create records which a user would not expect to exist.

This PR makes it so if count: 0 is specified on a OneToOne relationship, rom-factory will not create or build an associated record.