From 7f7c2679968828b9be5aac22d08a4c7326256a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Thu, 8 Dec 2016 11:03:32 +0100 Subject: [PATCH] Fill in class and property documentation based on Database Comments --- generators/model/default/model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generators/model/default/model.php b/generators/model/default/model.php index 1f1f8716e..9ca7f8d4b 100644 --- a/generators/model/default/model.php +++ b/generators/model/default/model.php @@ -21,10 +21,14 @@ use Yii; /** +comment): ?> + * comment, ["\n" => "\n * "]) . "\n" ?> + * This is the model class for table "generateTableName($tableName) ?>". + * columns as $column): ?> - * @property phpType} \${$column->name}\n" ?> + * @property phpType} \${$column->name}" . ($column->comment ? " " . strtr($column->comment, ["\n" => "\n * "]) : '') . "\n" ?> *