Files
yii2/tests/data/ar/Beta.php

26 lines
535 B
PHP

<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yiiunit\data\ar;
/**
* @property int $id
* @property string $alpha_string_identifier
* @property Alpha $alpha
*/
class Beta extends ActiveRecord
{
public static function tableName()
{
return 'beta';
}
public function getAlpha()
{
return $this->hasOne(Alpha::className(), ['string_identifier' => 'alpha_string_identifier']);
}
}