Commit 26bd147e authored by Christopher Stebe's avatar Christopher Stebe

added mission option `$useTimestampBehavior` to control the use of...

added mission option `$useTimestampBehavior` to control the use of yii\behaviors\Timestampbehavior in BatchController for model generation
parent d1ffd3b7
Pipeline #12552 failed with stages
in 3 minutes and 20 seconds
Changelog
=========
### 0.8.1
* added mission option `$useTimestampBehavior`, default is `true` to control the use of `yii\behaviors\Timestampbehavior` in CLI BatchController for model generation
### 0.8.0
* added giiant-extension generator
......
......@@ -28,6 +28,11 @@ class BatchController extends Controller
*/
public $useTranslatableBehavior = true;
/**
* @var bool whether to use yii\behaviors\TimestampBehavior in models
*/
public $useTimestampBehavior = true;
/**
* @var string the name of the table containing the translations. {{table}} will be replaced with the value in
* "Table Name" field.
......@@ -200,6 +205,7 @@ class BatchController extends Controller
'template',
'overwrite',
'useTranslatableBehavior',
'useTimestampBehavior',
'languageTableName',
'languageCodeColumn',
'extendedModels',
......@@ -284,6 +290,7 @@ class BatchController extends Controller
'interactive' => $this->interactive,
'overwrite' => $this->overwrite,
'useTranslatableBehavior' => $this->useTranslatableBehavior,
'useTimestampBehavior' => $this->useTimestampBehavior,
'languageTableName' => $this->languageTableName,
'languageCodeColumn' => $this->languageCodeColumn,
'template' => $this->template,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment