mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-09 16:57:53 +01:00
24 lines
477 B
PHP
24 lines
477 B
PHP
<?php
|
|
|
|
namespace yiiunit\data\ar\sphinx;
|
|
|
|
use yii\sphinx\ActiveQuery;
|
|
use yiiunit\data\ar\ActiveRecord as ActiveRecordDb;
|
|
|
|
class ArticleDb extends ActiveRecordDb
|
|
{
|
|
public static function tableName()
|
|
{
|
|
return 'yii2_test_article';
|
|
}
|
|
|
|
public function getIndex()
|
|
{
|
|
return new ActiveQuery(ArticleIndex::className(), [
|
|
'primaryModel' => $this,
|
|
'link' => ['id' => 'id'],
|
|
'multiple' => false,
|
|
]);
|
|
}
|
|
}
|