ValidatorTestRefModel.php 408 Bytes
Newer Older
1 2 3 4
<?php

namespace yiiunit\data\validators\models;

5
use yiiunit\data\ar\ActiveRecord;
6

7
class ValidatorTestRefModel extends ActiveRecord
8 9
{

10 11
    public $test_val = 2;
    public $test_val_fail = 99;
12

13 14
    public static function tableName()
    {
15
        return 'validator_ref';
16
    }
17

18 19 20 21
    public function getMain()
    {
        return $this->hasOne(ValidatorTestMainModel::className(), ['id' => 'ref']);
    }
AlexGx committed
22
}