method getObject documentation in bbn\Db\Languages\Sql
Return the first row resulting from the query as an object.
Synonym of get_obj.
Example
X::dump($db->getObject("SELECT name FROM table_users"));
/*
(obj){
"name" => "John"
}function()
{
if ($r = $this->query(...\func_get_args())) {
return $r->getObject();
}
return null;
}
Return the first row resulting from the query as an object. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way