255], [['default_image'], 'string', 'max' => 500], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'status' => 'Status', 'goods_id' => 'Goods ID', 'third_goods_id' => 'Third Goods ID', 'content' => 'Content', 'goods_name' => 'Goods Name', 'cate_one' => 'Cate One', 'cate_two' => 'Cate Two', 'cate_three' => 'Cate Three', ]; } public function getCateOne() { return $this->hasOne(QiDingDongCate::class, ['third_cate_id' => 'cate_one']); } public function getCateTwo() { return $this->hasOne(QiDingDongCate::class, ['third_cate_id' => 'cate_two']); } }