255], [['type'], 'string', 'max' => 100], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'goods_id' => '商品id', 'title' => '热搜词', 'sort' => '排序', 'type' => '类型', 'is_delete' => 'Is Delete', 'created_at' => 'Created At', 'deleted_at' => 'Deleted At', ]; } public function getGoods() { return $this->hasOne(Goods::className(), ['id' => 'goods_id']); } }