====== Automatic Creation of Models ====== Models can be created by hand as illustrated in the following sections, however; if your database tables already exist, automatically creating your models based on the existing table is fast and easy. To use this method, you simply use Solar's command line utility script. For more information, see the following: * [[manual:getting_started:first_model|Getting Started: First Model]] * [[http://solarphp.com/blog/read/29-solar-cli-make-model|Solar Blog: Solar Cli - Make Model]] The command line script will - create the model class representing your table, - create a _setup() method within that class, - create a class to represent a single record (Solar_Sql_Model_Record), - create a class to represent a collection of records (Solar_Sql_Model_Collection), and - create the _table_name and _table_cols properties referred to in the _setup() method.