db_findOneByOrFail

Get one record of a table by condition or throw 404 if not found

Parameters
string $table

The table name to fetch data from

#
array $condition

The condition array for query

#
array $orderBy = []

The order by clause for query

#
Returns
object|null