public function getSubAttributes() { return $this->hasMany(ProductAttribute::className(), ['category_id' => 'id']); }
public function getBelongAttribute() { return $this->hasOne(ProductAttribute::className(), ['id' => 'attribute_id']); }
public function getSubAttributes() { return $this->hasMany(ProductAttribute::className(), ['category_id' => 'id']); }
public function getBelongAttribute() { return $this->hasOne(ProductAttribute::className(), ['id' => 'attribute_id']); }