Blame view

common/modules/rubrication/models/TaxOptionRelation.php 1.15 KB
4253cbec   root   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  <?php

  

  namespace common\modules\rubrication\models;

  

  use common\modules\relation\models\Relation;

  use Yii;

  

  /**

   * This is the model class for table "tax_option_to_option".

   *

   * @property integer $tax_option1_id

   * @property integer $tax_option2_id

   * @property string $alias

   * @property integer $sort

   */

  class TaxOptionRelation extends Relation

  {

      /**

       * @inheritdoc

       */

      public static function tableName()

      {

          return 'tax_option_to_option';

      }

  

      /**

       * @inheritdoc

       */

      public function rules()

      {

          return [

              [['tax_option1_id', 'tax_option2_id', 'alias'], 'required'],

              [['tax_option1_id', 'tax_option2_id', 'sort'], 'integer'],

              [['alias'], 'string', 'max' => 50]

          ];

      }

  

      /**

       * @inheritdoc

       */

      public function attributeLabels()

      {

          return [

              'tax_option1_id' => Yii::t('product', 'Tax Option1 ID'),

              'tax_option2_id' => Yii::t('product', 'Tax Option2 ID'),

              'alias' => Yii::t('product', 'Alias'),

              'sort' => Yii::t('product', 'Sort'),

          ];

      }

  }