TimestampBehavior::className(), 'value' => function(){ return date('Y-m-d H:i:s' ); } ], ], parent::behaviors()); } /** * @inheritdoc */ public static function tableName() { return 'card_key_assignment'; } /** * @inheritdoc */ public function rules() { return [ [['id_card', 'id_key', 'id_user'], 'integer'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id_card' => Yii::t('common/image', 'Id Card'), 'id_key' => Yii::t('common/image', 'Id Key'), 'id_user' => Yii::t('common/image', 'Id User'), 'created_at' => Yii::t('common/image', 'Created At'), 'updated_at' => Yii::t('common/image', 'Updated At'), ]; } }