Hi,
I'm a little confused as to how the model should 'work' in my basic C++ implementation, or rather how the data from say the database backend should be encapsulated/worked with.
My thoughts at the moment are for a model with for example a static findById() method, which would return an instance of that same model, which would then represent a single 'row' of data (permitting manipulation etc etc) might be a suitable approach.
In terms then of creating a new row in the database, I suppose a new instance of the model would be created, populated with data, and effectively a save() method called?
Hopefully I'm on the right lines, but am just a little confused over the implementation/design here.
Any advice would be greatly appreciated.
Thanks in advance, James