Model Generator

This generator generates an ActiveRecord class for the specified database table.

This is the name of the DB table that the new ActiveRecord class is associated with, e.g. post. The table name may consist of the DB schema part if needed, e.g. public.post. The table name may end with asterisk to match multiple table names, e.g. tbl_* will match tables who name starts with tbl_. In this case, multiple ActiveRecord classes will be generated, one for each matching table name; and the class names will be generated from the matching characters. For example, table tbl_post will generate Post class.
This is the name of the ActiveRecord class to be generated. The class name should not contain the namespace part as it is specified in "Namespace". You do not need to specify the class name if "Table Name" ends with asterisk, in which case multiple ActiveRecord classes will be generated.
This indicates whether the generated class names should have standardized capitals. For example, table names like SOME_TABLE or Other_Table will have class names SomeTable and OtherTable, respectively. If not checked, the same tables will have class names SOMETABLE and OtherTable instead.
This is the namespace of the ActiveRecord class to be generated, e.g., app\models
This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.
This is the ID of the DB application component.
This indicates whether the table name returned by the generated ActiveRecord class should consider the tablePrefix setting of the DB connection. For example, if the table name is tbl_post and tablePrefix=tbl_, the ActiveRecord class will return the table name as {{%post}}.
This indicates whether the generator should generate relations based on foreign key constraints it detects in the database. Note that if your database contains too many tables, you may want to uncheck this option to accelerate the code generation process.
This indicates whether the generator should generate relations from current schema or from all available schemas.
This indicates whether the generator should generate attribute labels by using the comments of the corresponding DB columns.
This indicates whether to generate ActiveQuery for the ActiveRecord class.
This is the namespace of the ActiveQuery class to be generated, e.g., app\models
This is the name of the ActiveQuery class to be generated. The class name should not contain the namespace part as it is specified in "ActiveQuery Namespace". You do not need to specify the class name if "Table Name" ends with asterisk, in which case multiple ActiveQuery classes will be generated.
This is the base class of the new ActiveQuery class. It should be a fully qualified namespaced class name.
This indicates whether the generator should generate strings using Yii::t() method. Set this to true if you are planning to make your application translatable.
This is the category used by Yii::t() in case you enable I18N.
This indicates whether to include the schema name in the ActiveRecord class when it's auto generated. Only non default schema would be used.
Please select which set of the templates should be used to generated the code.