Blame view

common/models/Variant.php 403 Bytes
a442f66d   Anastasia   bug fix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <?php
      /**
       * Created by PhpStorm.
       * User: stes
       * Date: 20.09.17
       * Time: 18:53
       */
      
      namespace common\models;
      
      class Variant extends \artbox\catalog\models\Variant
      {
          public function getProduct()
          {
              return $this->hasOne(Product::className(), [ 'id' => 'product_id' ])
                          ->inverseOf('variants');
          }
      }