Skip to content

Commit

Permalink
Remove timestamps columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
diazoxide committed Nov 14, 2019
1 parent b366e9c commit 43731bc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/component/translation/models/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@

use NovemBit\i18n\models\ActiveRecord;
use NovemBit\i18n\models\exceptions\ActiveRecordException;
use yii\behaviors\TimestampBehavior;
use yii\db\Exception;


/**
* ActiveRecord class. Child of Yii ActiveRecord library
*
Expand All @@ -32,8 +30,6 @@
* @property string $from_language
* @property string $to_language
* @property int $type
* @property int $created_at
* @property int $updated_at
* @property string $source
* @property string $translate
* @property int $level
Expand Down Expand Up @@ -76,7 +72,6 @@ public function rules()
],
[['from_language', 'to_language'], 'string', 'max' => 2],
[['type', 'level'], 'integer', 'min' => 0, 'max' => 99],
[['created_at', 'updated_at'], 'integer'],
];
}

Expand Down Expand Up @@ -107,12 +102,7 @@ public function beforeSave($insert)
public function behaviors()
{
return [
[
'class' => TimestampBehavior::class,
'createdAtAttribute' => 'created_at',
'updatedAtAttribute' => 'updated_at',
'value' => time(),
]

];
}

Expand Down

0 comments on commit 43731bc

Please sign in to comment.