Yii2 framework backup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
477 B

<?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,
]);
}
}