NextDom\Helpers\DBHelper::getOneObject
Get one object from database
Signature
public function getOneObject(string
$query,
array
$params,
string
$objectClassName )
Parameters
$query
— string- SQL query
$params
— array- Query params
$objectClassName
— string- Class of object
Returns
- mixed|null
- Instance of the class