B.10. Model Classes

Model classes in a Solar system should be named after their tables. Underscores in table names are expected to be replaced with camel-caps. For example, in an Acme_Model domain, a table named foo_bars should map to the class Acme_Model_FooBars.

In general, table names are expected to be in the plural. For example, blogs (not blog), and people or persons (not person).

These are not hard-coded restrictions. You can always use any table name with any class name, although you may need to set special options in the model class to make sure things wire up correctly.



Local