I want to be able to create a new model object that behaves exactly the same as another model object. An example is this:
TableA -> is the main database
AltA -> is the first "SQL-view-like" model (Uses the data in TableA)
AltB -> is the second "SQL-view-like" model (Uses the data in TableA)
Link -> The connection table that links the AltA and AltB tables with a HM:T relationship
In the Link table I'll have the columns: alta_id & altb_id that link the two records together.
What do I have to do to the AltA & AltB table models to make them behave as if they are real data sources and not "SQL-view-like" models?
I tried inheriting from the TableA model but it did not work as I expected. It seemd to still think it was a "TableA" model. I think I was missing something.