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

namespace yiiunit\data\validators\models;


6
use yiiunit\data\ar\ActiveRecord;
7

8
class ValidatorTestRefModel extends ActiveRecord
9 10 11 12
{

	public $test_val = 2;
	public $test_val_fail = 99;
13

14 15
	public static function tableName()
	{
16
		return 'tbl_validator_ref';
17 18 19 20
	}

	public function getMain()
	{
Alexander Makarov committed
21
		return $this->hasOne(ValidatorTestMainModel::className(), ['id' => 'ref']);
22 23
	}
}