ValidatorTestMainModel.php 390 Bytes
Newer Older
1 2 3 4
<?php

namespace yiiunit\data\validators\models;

5
use yiiunit\data\ar\ActiveRecord;
6

7
class ValidatorTestMainModel extends ActiveRecord
8
{
9
    public $testMainVal = 1;
10

11 12 13 14
    public static function tableName()
    {
        return 'tbl_validator_main';
    }
15

16 17 18 19
    public function getReferences()
    {
        return $this->hasMany(ValidatorTestRefModel::className(), ['ref' => 'id']);
    }
AlexGx committed
20
}