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.
		
		
		
		
			
				
					25 lines
				
				459 B
			
		
		
			
		
	
	
					25 lines
				
				459 B
			| 
											12 years ago
										 | <?php
 | ||
|  | 
 | ||
| 
											12 years ago
										 | namespace yiiunit\data\ar\sphinx;
 | ||
| 
											12 years ago
										 | 
 | ||
| 
											12 years ago
										 | use yii\sphinx\ActiveRelation;
 | ||
| 
											12 years ago
										 | use yiiunit\data\ar\ActiveRecord as ActiveRecordDb;
 | ||
| 
											12 years ago
										 | 
 | ||
| 
											12 years ago
										 | class ArticleDb extends ActiveRecordDb
 | ||
| 
											12 years ago
										 | {
 | ||
|  | 	public static function tableName()
 | ||
|  | 	{
 | ||
|  | 		return 'yii2_test_article';
 | ||
|  | 	}
 | ||
| 
											12 years ago
										 | 
 | ||
|  | 	public function getIndex()
 | ||
|  | 	{
 | ||
|  | 		$config = [
 | ||
|  | 			'modelClass' => ArticleIndex::className(),
 | ||
|  | 			'primaryModel' => $this,
 | ||
|  | 			'link' => ['id' => 'id'],
 | ||
|  | 			'multiple' => false,
 | ||
|  | 		];
 | ||
|  | 		return new ActiveRelation($config);
 | ||
|  | 	}
 | ||
| 
											12 years ago
										 | }
 |