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 OR throws 404 if any result is not found.
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
|