fetch style for select queries
eburhan opened this issue · 2 comments
eburhan commented
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?
mario-deluna commented
Hi there,
very good input, definitely something I want to see in the future of hydrahon!
leonkramer commented
also looking forward to this. would be nice.