125], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'merchant_id' => '商户id', 'product_id' => '商品编码', 'title' => '属性标题', 'common_spec_id' => '系统规格id', 'common_spec_value_id' => '系统规格值id', 'data' => '属性值例如颜色', 'sort' => '排序', 'pitch_on' => '选中', 'status' => '状态(-1:已删除,0:禁用,1:正常)', 'created_at' => '创建时间', 'updated_at' => '修改时间', ]; } public function getSpec() { return $this->hasOne(Spec::class, ['common_spec_id' => 'common_spec_id']); } }