You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to employ inheritance over 3 levels for Models that I use in a LogCollection (polymorphism) and have been attempting to use AssociatedModel for the top level model BaseLog and then extend/specialise to suit my needs:
The BaseLog has a Backbone.Many relation property of vehicles and when run the related vehicles collection is present in the BaseLog as you would expect, but in aany of the sub-classes (e.g. WorkingLog, DriveLog, RestLog, CloseLog) it is undefined.
Can you offer any tips as all your tests appear to define an Backbone.AssociatedModel for each class and I don't see this type of inheritance anywhere?
Any advice greatly appreciated.
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to employ inheritance over 3 levels for Models that I use in a
LogCollection
(polymorphism) and have been attempting to use AssociatedModel for the top level modelBaseLog
and then extend/specialise to suit my needs:The
BaseLog
has a Backbone.Many relation property ofvehicles
and when run the relatedvehicles
collection is present in theBaseLog
as you would expect, but in aany of the sub-classes (e.g.WorkingLog
,DriveLog
,RestLog
,CloseLog
) it isundefined
.Can you offer any tips as all your tests appear to define an Backbone.AssociatedModel for each class and I don't see this type of inheritance anywhere?
Any advice greatly appreciated.
The text was updated successfully, but these errors were encountered: