sphinx\ActiveRecord indexName()

indexName() public static method

Declares the name of the Sphinx index associated with this AR class.

By default this method returns the class name as the index name by calling yii\helpers\Inflector::camel2id(). For example, 'Article' becomes 'article', and 'StockItem' becomes 'stock_item'. You may override this method if the index is not named after this convention.

public static string indexName ( )
return string

The index name

doc_Yii
2016-10-30 17:11:38
Comments
Leave a Comment

Please login to continue.