Open PrasannaVenkadesh opened 7 years ago
I have two models.
I have defined the hasOne relationship on Resource model like this.
hasOne
Resource
Resource.hasOne('category', db.models.category, { 'reverse': 'resources' });
After db sync, resource.getCategory(function) is available but, category.getResources(function) has not been made available.
resource.getCategory(function)
category.getResources(function)
P.S: Using node-orm2 version 3.1.0 and nodejs v6.2.0
Same here ...
ModelOne.hasOne('model_two', ModelTwo, { reverse: 'model_one', autoFetch: true });
Unable to find model_two.getModel_one()
model_two.getModel_one()
I have two models.
I have defined the
hasOne
relationship onResource
model like this.Resource.hasOne('category', db.models.category, { 'reverse': 'resources' });
After db sync,
resource.getCategory(function)
is available but,category.getResources(function)
has not been made available.P.S: Using node-orm2 version 3.1.0 and nodejs v6.2.0