If I have two existing DataObjects that share common data & behavior, say for example they both have a Title field in the $db variable & I want to move the shared data into a base class for the two DataObjects, if I already have data in the database associated with the DataObject how do I migrate this data along with the structure, without having to get bogged down in sql? or is there no other way to do it?
So say my two DataObjects get their Title data by inheriting from BaseDataObject for example, this data in the DB moves to a table called BaseDataObject only the existing Title data wont migrate, obviously, how do i go about migrating it?
Edit:
I accepted the answer below even though it wasn't the solution to my problem.
I'd say the accepted answer is more relevant to the question of migrating data, however, to solve my issue of wanting a field shared across multiple DataObjects, but declared in one place while keeping the current database structures the same, I went with extending the classes via the DataExtension class and applying them that way.