sphinx\ActiveRecord primaryKey()

primaryKey() public static method

Returns the primary key name for this AR class.

The default implementation will return the primary key as declared in the Sphinx index, which is associated with this AR class.

Note that an array should be returned even for a table with single primary key.

public static string[] primaryKey ( )
return string[]

The primary keys of the associated Sphinx index.

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

Please login to continue.