label) * @var string[] $rules list of validation rules * @var array $relations list of relations (name=>relation declaration) */ echo " namespace ns ?>; /** * This is the model class for table "". * columns as $column): ?> * @property phpType} \${$column->name}\n" ?> * $relation): ?> * @property */ class extends baseClass, '\\') . "\n" ?> { /** * {@inheritdoc} */ public static function tableName() { return ''; } /** * {@inheritdoc} */ public function rules() { return []; } /** * {@inheritdoc} */ public function attributeLabels() { return [ $label): ?> '" . addslashes($label) . "',\n" ?> ]; } $relation): ?> /** * @return \yii\db\ActiveRelation */ public function get() { } }