elasticsearch\ActiveRecord get()

get() public static method

Gets a record by its primary key.

public static static|null get ( $primaryKey, $options = [] )
$primaryKey mixed

The primaryKey value

$options array

Options given in this parameter are passed to elasticsearch as request URI parameters. Please refer to the elasticsearch documentation for more details on these options.

return static|null

The record instance or null if it was not found.

doc_Yii
2016-10-30 17:01:22
Comments
Leave a Comment

Please login to continue.