ClanCats/Hydrahon

fetch style for select queries

eburhan opened this issue · 2 comments

class Person { private $id; private $name; private $age; }

Hi. I want to mapping the columns of the result set to named properties in the class. Example:

$h->table('person') ->select() ->where('name', 'George') ->get(**Person::class**);

Can you add such a feature in future releases?

Hi there,

very good input, definitely something I want to see in the future of hydrahon!

also looking forward to this. would be nice.