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. |
Please login to continue.