Get a single entity result where the primary key matches the value passed in as the second parameter for the table name in the first parameter.
Parameters | |||
---|---|---|---|
string
|
$table |
The table name to fetch data from |
# |
int
|
$id |
The value of the primary key to match |
# |
array
|
$fields = [] |
The array of fields to select |
# |
Returns | |
---|---|
object|null
|