|
What is a mapping |
A mapping specifies the translation between differently structured data, in this case objects and database data |
PhpPeanuts maps classes to tables one to one, and this mapping is specified in the static method getTableName that should be overridden by each PntDbObject subclass.
Currently fields are mapped one to one to columns with the same name. As of 1.4.rc1 it is possible to specify a different column name for a field property and has the framework been tested to work with it.
More sophisticated mapping is possible, but requires the persistency implementation provided by the framework to be overridden. In other words, that's up to you to write if you need it.
|
|