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

namespace yiiunit\data\validators\models;


6
use yiiunit\data\ar\ActiveRecord;
7

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

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

	public function getReferences()
	{
Alexander Makarov committed
19
		return $this->hasMany(ValidatorTestRefModel::className(), ['ref' => 'id']);
20 21
	}
}