I have a `Foo` model that `belongsTo( models.Bar ) ` , I instantiated/created `Foo` with the foreign key `BarId: 123`.so I should be able to call `foo.getBar` , but get undefined when I try to reference any of `foo.getBar.attributes`.I see it returns a function with `foo.getBar` but not I'm not sure what its for.
Submitted May 11, 2019 at 10:27PM by horrofan
No comments:
Post a Comment