mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-04 22:44:53 +01:00
26 lines
535 B
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']);
|
|
}
|
|
} |