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.
Previously,
rom-factory
ignored thecount
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 aOneToOne
relationship,rom-factory
will not create or build an associated record.