|
@ -2,8 +2,8 @@ |
|
|
|
|
|
|
|
|
namespace backend\modules\file\models\ars; |
|
|
namespace backend\modules\file\models\ars; |
|
|
|
|
|
|
|
|
use Yii; |
|
|
|
|
|
use yii\behaviors\TimestampBehavior; |
|
|
use yii\behaviors\TimestampBehavior; |
|
|
|
|
|
use yii\db\ActiveRecord; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* This is the model class for table "ats_file". |
|
|
* This is the model class for table "ats_file". |
|
@ -20,7 +20,7 @@ use yii\behaviors\TimestampBehavior; |
|
|
* @property int $updated_at 更新时间 |
|
|
* @property int $updated_at 更新时间 |
|
|
* @property int $created_at 创建时间 |
|
|
* @property int $created_at 创建时间 |
|
|
*/ |
|
|
*/ |
|
|
class File extends \yii\db\ActiveRecord |
|
|
|
|
|
|
|
|
class File extends ActiveRecord |
|
|
{ |
|
|
{ |
|
|
//own_type
|
|
|
//own_type
|
|
|
const OWN_TYPE_GOODS_INDEX = 1;//商品首页
|
|
|
const OWN_TYPE_GOODS_INDEX = 1;//商品首页
|
|
@ -81,7 +81,7 @@ class File extends \yii\db\ActiveRecord |
|
|
{ |
|
|
{ |
|
|
return [ |
|
|
return [ |
|
|
[ |
|
|
[ |
|
|
'class' => TimestampBehavior::className(), |
|
|
|
|
|
|
|
|
'class' => TimestampBehavior::class, |
|
|
'createdAtAttribute' => 'created_at', |
|
|
'createdAtAttribute' => 'created_at', |
|
|
'updatedAtAttribute' => 'updated_at', |
|
|
'updatedAtAttribute' => 'updated_at', |
|
|
'value' => function() { |
|
|
'value' => function() { |
|
|