Files
yii2/tests/unit/data/validators/models/ValidatorTestRefModel.php
Alexander Makarov 1f6a823073 Short array syntax
2013-10-18 20:52:38 +04:00

23 lines
376 B
PHP

<?php
namespace yiiunit\data\validators\models;
use yiiunit\data\ar\ActiveRecord;
class ValidatorTestRefModel extends ActiveRecord
{
public $test_val = 2;
public $test_val_fail = 99;
public static function tableName()
{
return 'tbl_validator_ref';
}
public function getMain()
{
return $this->hasOne(ValidatorTestMainModel::className(), ['id' => 'ref']);
}
}