20], [['device_identifier'], 'string', 'max' => 255] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => Yii::t('common/mobiledevice', 'ID'), 'id_card' => Yii::t('common/mobiledevice', 'Id Card'), 'status' => Yii::t('common/mobiledevice', 'Status'), 'device_identifier' => Yii::t('common/mobiledevice', 'Device Identifier'), 'activated_at' => Yii::t('common/mobiledevice', 'Activated At'), 'created_at' => Yii::t('common/mobiledevice', 'Created At'), 'updated_at' => Yii::t('common/mobiledevice', 'Updated At'), ]; } public function behaviors() { return ArrayHelper::merge( [ [ 'class' => TimestampBehavior::className(), 'value' => function(){ return date('Y-m-d H:i:s' ); } ] ], parent::behaviors()); } }