mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-19 09:54:07 +08:00
23 lines
408 B
PHP
23 lines
408 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 'validator_ref';
|
|
}
|
|
|
|
public function getMain()
|
|
{
|
|
return $this->hasOne(ValidatorTestMainModel::className(), ['id' => 'ref']);
|
|
}
|
|
}
|