ValidatorTestMainModel.php 386 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
    public static function tableName()
    {
13
        return 'validator_main';
14
    }
15

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