Closed
Description
When defining a one-way relation with belongsTo it errors when it cannot find the inverse relationship - the code below (is from descriptor: { set() }
)
const id = utils.get(this, idAttribute)
const inverseDef = def.getInverse(mapper)
// e.g. profile.user !== someUser
// or comment.post !== somePost
if (currentParent) {
// e.g. otherUser.profile = undefined
if (inverseDef.type === hasOneType) {
Failing spec:
pik@aaf9f2c