Commit ec07777f13bdb8a336547e825ab0fe6b2f84c8a9
1 parent
bc6c8271
big commti
Showing
2 changed files
with
0 additions
and
16 deletions
Show diff stats
common/modules/product/models/Product.php
@@ -308,14 +308,6 @@ class Product extends \yii\db\ActiveRecord | @@ -308,14 +308,6 @@ class Product extends \yii\db\ActiveRecord | ||
308 | return $this->hasMany(Stock::className(), ['stock_id' => 'stock_id'])->viaTable(ProductStock::tableName(), ['product_id' => 'product_id']); | 308 | return $this->hasMany(Stock::className(), ['stock_id' => 'stock_id'])->viaTable(ProductStock::tableName(), ['product_id' => 'product_id']); |
309 | } | 309 | } |
310 | 310 | ||
311 | - /** | ||
312 | - * @inheritdoc | ||
313 | - * @return ProductQuery the active query used by this AR class. | ||
314 | - */ | ||
315 | - public static function find() | ||
316 | - { | ||
317 | - return new ProductQuery(get_called_class()); | ||
318 | - } | ||
319 | 311 | ||
320 | public function getQuantity() { | 312 | public function getQuantity() { |
321 | return ProductStock::find() | 313 | return ProductStock::find() |
common/modules/product/models/ProductVariant.php
@@ -228,14 +228,6 @@ class ProductVariant extends \yii\db\ActiveRecord | @@ -228,14 +228,6 @@ class ProductVariant extends \yii\db\ActiveRecord | ||
228 | return $groups; | 228 | return $groups; |
229 | } | 229 | } |
230 | 230 | ||
231 | - /** | ||
232 | - * @inheritdoc | ||
233 | - * @return ProductVariantQuery the active query used by this AR class. | ||
234 | - */ | ||
235 | - public static function find() | ||
236 | - { | ||
237 | - return new ProductVariantQuery(get_called_class()); | ||
238 | - } | ||
239 | 231 | ||
240 | public function getId(){ | 232 | public function getId(){ |
241 | return $this->product_variant_id; | 233 | return $this->product_variant_id; |